Micron Document
<!DOCTYPE html>
<html class="client-nojs vector-feature-night-mode-disabled vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-sticky-header-enabled" lang="en" dir="ltr"><head>
<meta charset="UTF-8">
<title>Carmichael function</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="canonical" href="https://en.wikipedia.org/wiki/Carmichael_function"> <link href="./mw/ext.cite.styles.css" rel="stylesheet" type="text/css">
<link href="./mw/ext.math.styles.css" rel="stylesheet" type="text/css">
<link href="./mw/skins.vector.icons.css" rel="stylesheet" type="text/css">
<link href="./mw/skins.vector.search.codex.styles.css" rel="stylesheet" type="text/css">
<link href="./mw/skins.vector.styles.css" rel="stylesheet" type="text/css">
<link href="./mw/user.styles.css" rel="stylesheet" type="text/css">
<meta name="ResourceLoaderDynamicStyles" content="">
<link rel="stylesheet" type="text/css" href="./mw/site.styles.css">
<link rel="stylesheet" type="text/css" href="./mw/noscript.css">
<link rel="stylesheet" type="text/css" href="./footer.css">
<link rel="stylesheet" type="text/css" href="./vector-2022.css">
</head>
<body class="skin--responsive skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-0 ns-subject page-Carmichael_function rootpage-Carmichael_function skin-vector-2022 action-view">
<div class="mw-page-container">
<div class="mw-page-container-inner">
<div class="mw-content-container">
<main id="content" class="mw-body">
<header class="mw-body-header vector-page-titlebar">
<h1 id="firstHeading" class="firstHeading mw-first-heading">
<span id="openzim-page-title" class="mw-page-title-main"><span class="mw-page-title-main">Carmichael function</span></span>
</h1>
</header>
<a id="top"></a>
<div id="bodyContent" class="vector-body ve-init-mw-desktopArticleTarget-targetContainer" aria-labelledby="firstHeading" data-mw-ve-target-container="">
<div id="mw-content-text" class="mw-body-content mw-content-ltr" lang="en" dir="ltr"><div class="mw-content-ltr mw-parser-output" lang="en" dir="ltr">
<p>In <a href="Number_theory" title="Number theory">number theory</a>, a branch of <a href="Mathematics" title="Mathematics">mathematics</a>, the <b>Carmichael function</b> <span class="texhtml"> <i>λ</i>(<i>n</i>)</span> of a <a href="Positive_integer" class="mw-redirect" title="Positive integer">positive integer</a> <span class="texhtml mvar" style="font-style:italic;"> n</span> is the smallest positive integer <span class="texhtml mvar" style="font-style:italic;">m</span> such that
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle a^{m}\equiv 1{\pmod {n}}}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<msup>
<mi>a</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>m</mi>
</mrow>
</msup>
<mo>≡<!-- ≡ --></mo>
<mn>1</mn>
<mrow class="MJX-TeXAtom-ORD">
<mspace width="1em"></mspace>
<mo stretchy="false">(</mo>
<mi>mod</mi>
<mspace width="0.333em"></mspace>
<mi>n</mi>
<mo stretchy="false">)</mo>
</mrow>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle a^{m}\equiv 1{\pmod {n}}}</annotation>
</semantics>
</math></span><img src="./6295499efc8f39a0cd7ec690788edcb794eb2bde.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:18.245ex; height:2.843ex;" alt="{\displaystyle a^{m}\equiv 1{\pmod {n}}}" loading="lazy"></span></dd></dl>
<p>holds for every integer <span class="texhtml mvar" style="font-style:italic;"> a</span> <a href="Coprime" class="mw-redirect" title="Coprime">coprime</a> to <span class="texhtml mvar" style="font-style:italic;"> n</span>. In algebraic terms, <span class="texhtml"> <i>λ</i>(<i>n</i>)</span> is the <a href="Exponent_of_a_group" class="mw-redirect" title="Exponent of a group">exponent</a> of the <a href="Multiplicative_group_of_integers_modulo_n" title="Multiplicative group of integers modulo n">multiplicative group of integers modulo <span class="texhtml mvar" style="font-style:italic;"> n</span></a>. As this is a <a href="Abelian_group#Finite_abelian_groups" title="Abelian group">finite abelian group</a>, there must exist an element whose <a href="Cyclic_group#Definition_and_notation" title="Cyclic group">order</a> equals the exponent, <span class="texhtml"> <i>λ</i>(<i>n</i>)</span>. Such an element is called a <b>primitive <span class="texhtml"> <i>λ</i></span>-root modulo <span class="texhtml mvar" style="font-style:italic;"> n</span></b>.
</p>

<p>The Carmichael function is named after the American mathematician <a href="Robert_Daniel_Carmichael" title="Robert Daniel Carmichael">Robert Carmichael</a> who defined it in 1910.<sup id="cite_ref-1" class="reference"><a href="#cite_note-1"><span class="cite-bracket">[</span>1<span class="cite-bracket">]</span></a></sup> It is also known as <b>Carmichael's λ function</b>, the <b>reduced totient function</b>, and the <b>least universal exponent function</b>.
</p><p>The order of the multiplicative group of integers modulo <span class="texhtml mvar" style="font-style:italic;"> n</span> is <span class="texhtml"> <i>φ</i>(<i>n</i>)</span>, where <span class="texhtml mvar" style="font-style:italic;"> φ</span> is <a href="Euler's_totient_function" title="Euler's totient function">Euler's totient function</a>. Since the order of an element of a finite group divides the order of the group, <span class="texhtml"> <i>λ</i>(<i>n</i>)</span> divides <span class="texhtml"> <i>φ</i>(<i>n</i>)</span>. The following table compares the first 36 values of <span class="texhtml"> <i>λ</i>(<i>n</i>)</span> (sequence <span class="nowrap external"><a href="https://oeis.org/A002322" class="extiw external" title="oeis:A002322">A002322</a></span> in the <a href="On-Line_Encyclopedia_of_Integer_Sequences" title="On-Line Encyclopedia of Integer Sequences">OEIS</a>) and <span class="texhtml"> <i>φ</i>(<i>n</i>)</span> (in <b>bold</b> if they are different; the values of<span class="texhtml mvar" style="font-style:italic;"> n</span> such that they are different are listed in <span class="nowrap external"><a href="On-Line_Encyclopedia_of_Integer_Sequences" title="On-Line Encyclopedia of Integer Sequences">OEIS</a>:&nbsp;<a href="https://oeis.org/A033949" class="extiw external" title="oeis:A033949">A033949</a></span>).
</p>
<table class="wikitable" style="text-align: center;">

<tbody><tr>
<th scope="col"><span class="texhtml mvar" style="font-style:italic;"> n</span>
</th>
<th scope="col">1
</th>
<th scope="col">2
</th>
<th scope="col">3
</th>
<th scope="col">4
</th>
<th scope="col">5
</th>
<th scope="col">6
</th>
<th scope="col">7
</th>
<th scope="col">8
</th>
<th scope="col">9
</th>
<th scope="col">10
</th>
<th scope="col">11
</th>
<th scope="col">12
</th>
<th scope="col">13
</th>
<th scope="col">14
</th>
<th scope="col">15
</th>
<th scope="col">16
</th>
<th scope="col">17
</th>
<th scope="col">18
</th>
<th scope="col">19
</th>
<th scope="col">20
</th>
<th scope="col">21
</th>
<th scope="col">22
</th>
<th scope="col">23
</th>
<th scope="col">24
</th>
<th scope="col">25
</th>
<th scope="col">26
</th>
<th scope="col">27
</th>
<th scope="col">28
</th>
<th scope="col">29
</th>
<th scope="col">30
</th>
<th scope="col">31
</th>
<th scope="col">32
</th>
<th scope="col">33
</th>
<th scope="col">34
</th>
<th scope="col">35
</th>
<th scope="col">36
</th></tr>
<tr>
<th scope="row"><span class="texhtml"> <i>λ</i>(<i>n</i>)</span>
</th>
<td>1</td>
<td>1</td>
<td>2</td>
<td>2</td>
<td>4</td>
<td>2</td>
<td>6</td>
<td><b>2</b></td>
<td>6</td>
<td>4</td>
<td>10</td>
<td><b>2</b></td>
<td>12</td>
<td>6</td>
<td><b>4</b></td>
<td><b>4</b></td>
<td>16</td>
<td>6</td>
<td>18</td>
<td><b>4</b></td>
<td><b>6</b></td>
<td>10</td>
<td>22</td>
<td><b>2</b></td>
<td>20</td>
<td>12</td>
<td>18</td>
<td><b>6</b></td>
<td>28</td>
<td><b>4</b></td>
<td>30</td>
<td><b>8</b></td>
<td><b>10</b></td>
<td>16</td>
<td><b>12</b></td>
<td><b>6</b>
</td></tr>
<tr>
<th scope="row"><span class="texhtml"> <i>φ</i>(<i>n</i>)</span>
</th>
<td>1</td>
<td>1</td>
<td>2</td>
<td>2</td>
<td>4</td>
<td>2</td>
<td>6</td>
<td><b>4</b></td>
<td>6</td>
<td>4</td>
<td>10</td>
<td><b>4</b></td>
<td>12</td>
<td>6</td>
<td><b>8</b></td>
<td><b>8</b></td>
<td>16</td>
<td>6</td>
<td>18</td>
<td><b>8</b></td>
<td><b>12</b></td>
<td>10</td>
<td>22</td>
<td><b>8</b></td>
<td>20</td>
<td>12</td>
<td>18</td>
<td><b>12</b></td>
<td>28</td>
<td><b>8</b></td>
<td>30</td>
<td><b>16</b></td>
<td><b>20</b></td>
<td>16</td>
<td><b>24</b></td>
<td><b>12</b>
</td></tr></tbody></table>
<meta property="mw:PageProp/toc">
<div class="mw-heading mw-heading2"><h2 id="Numerical_examples">Numerical examples</h2></div>
<ul><li><span class="texhtml"> <i>n</i> = 5</span>. The set of numbers less than and coprime to 5 is <span class="texhtml"> {1,2,3,4</span>}. Hence Euler's totient function has value <span class="texhtml"> <i>φ</i>(5) = 4</span> and the value of Carmichael's function, <span class="texhtml"> <i>λ</i>(5)</span>, must be a <a href="Divisor" title="Divisor">divisor</a> of 4. The divisor 1 does not satisfy the definition of Carmichael's function since <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle a^{1}\not \equiv 1{\pmod {5}}}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<msup>
<mi>a</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>1</mn>
</mrow>
</msup>
<mo>≢</mo>
<mn>1</mn>
<mrow class="MJX-TeXAtom-ORD">
<mspace width="1em"></mspace>
<mo stretchy="false">(</mo>
<mi>mod</mi>
<mspace width="0.333em"></mspace>
<mn>5</mn>
<mo stretchy="false">)</mo>
</mrow>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle a^{1}\not \equiv 1{\pmod {5}}}</annotation>
</semantics>
</math></span><img src="./efa17f5203c037bae159f5b2a5415c20d1a9cfce.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:17.393ex; height:3.176ex;" alt="{\displaystyle a^{1}\not \equiv 1{\pmod {5}}}" loading="lazy"></span> except for <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle a\equiv 1{\pmod {5}}}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>a</mi>
<mo>≡<!-- ≡ --></mo>
<mn>1</mn>
<mrow class="MJX-TeXAtom-ORD">
<mspace width="1em"></mspace>
<mo stretchy="false">(</mo>
<mi>mod</mi>
<mspace width="0.333em"></mspace>
<mn>5</mn>
<mo stretchy="false">)</mo>
</mrow>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle a\equiv 1{\pmod {5}}}</annotation>
</semantics>
</math></span><img src="./09675d0ebd1b688db3f170176fd56eec079a901a.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:16.337ex; height:2.843ex;" alt="{\displaystyle a\equiv 1{\pmod {5}}}" loading="lazy"></span>. Neither does 2 since <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle 2^{2}\equiv 3^{2}\equiv 4\not \equiv 1{\pmod {5}}}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<msup>
<mn>2</mn>
<mrow class="MJX-TeXAtom-ORD">
<mn>2</mn>
</mrow>
</msup>
<mo>≡<!-- ≡ --></mo>
<msup>
<mn>3</mn>
<mrow class="MJX-TeXAtom-ORD">
<mn>2</mn>
</mrow>
</msup>
<mo>≡<!-- ≡ --></mo>
<mn>4</mn>
<mo>≢</mo>
<mn>1</mn>
<mrow class="MJX-TeXAtom-ORD">
<mspace width="1em"></mspace>
<mo stretchy="false">(</mo>
<mi>mod</mi>
<mspace width="0.333em"></mspace>
<mn>5</mn>
<mo stretchy="false">)</mo>
</mrow>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle 2^{2}\equiv 3^{2}\equiv 4\not \equiv 1{\pmod {5}}}</annotation>
</semantics>
</math></span><img src="./4343070cb68c3fe117ec99bf4e3835737c909b9a.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:26.901ex; height:3.176ex;" alt="{\displaystyle 2^{2}\equiv 3^{2}\equiv 4\not \equiv 1{\pmod {5}}}" loading="lazy"></span>. Hence <span class="texhtml"> <i>λ</i>(5) = 4</span>. Indeed, <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle 1^{4}\equiv 2^{4}\equiv 3^{4}\equiv 4^{4}\equiv 1{\pmod {5}}}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<msup>
<mn>1</mn>
<mrow class="MJX-TeXAtom-ORD">
<mn>4</mn>
</mrow>
</msup>
<mo>≡<!-- ≡ --></mo>
<msup>
<mn>2</mn>
<mrow class="MJX-TeXAtom-ORD">
<mn>4</mn>
</mrow>
</msup>
<mo>≡<!-- ≡ --></mo>
<msup>
<mn>3</mn>
<mrow class="MJX-TeXAtom-ORD">
<mn>4</mn>
</mrow>
</msup>
<mo>≡<!-- ≡ --></mo>
<msup>
<mn>4</mn>
<mrow class="MJX-TeXAtom-ORD">
<mn>4</mn>
</mrow>
</msup>
<mo>≡<!-- ≡ --></mo>
<mn>1</mn>
<mrow class="MJX-TeXAtom-ORD">
<mspace width="1em"></mspace>
<mo stretchy="false">(</mo>
<mi>mod</mi>
<mspace width="0.333em"></mspace>
<mn>5</mn>
<mo stretchy="false">)</mo>
</mrow>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle 1^{4}\equiv 2^{4}\equiv 3^{4}\equiv 4^{4}\equiv 1{\pmod {5}}}</annotation>
</semantics>
</math></span><img src="./2f4e53ff0e6a069dccf4f1f350b3cdeb1597df0b.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:33.27ex; height:3.176ex;" alt="{\displaystyle 1^{4}\equiv 2^{4}\equiv 3^{4}\equiv 4^{4}\equiv 1{\pmod {5}}}" loading="lazy"></span>. Both 2 and 3 are primitive <span class="texhtml mvar" style="font-style:italic;"> λ</span>-roots modulo 5 and also <a href="Primitive_root_modulo_n" title="Primitive root modulo n">primitive roots</a> modulo 5.</li>
<li><span class="texhtml"> <i>n</i> = 8</span>. The set of numbers less than and coprime to 8 is <span class="texhtml"> {1,3,5,7} </span>. Hence <span class="texhtml"> <i>φ</i>(8) = 4</span> and <span class="texhtml"> <i>λ</i>(8)</span> must be a divisor of 4. In fact <span class="texhtml"> <i>λ</i>(8) = 2</span> since <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle 1^{2}\equiv 3^{2}\equiv 5^{2}\equiv 7^{2}\equiv 1{\pmod {8}}}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<msup>
<mn>1</mn>
<mrow class="MJX-TeXAtom-ORD">
<mn>2</mn>
</mrow>
</msup>
<mo>≡<!-- ≡ --></mo>
<msup>
<mn>3</mn>
<mrow class="MJX-TeXAtom-ORD">
<mn>2</mn>
</mrow>
</msup>
<mo>≡<!-- ≡ --></mo>
<msup>
<mn>5</mn>
<mrow class="MJX-TeXAtom-ORD">
<mn>2</mn>
</mrow>
</msup>
<mo>≡<!-- ≡ --></mo>
<msup>
<mn>7</mn>
<mrow class="MJX-TeXAtom-ORD">
<mn>2</mn>
</mrow>
</msup>
<mo>≡<!-- ≡ --></mo>
<mn>1</mn>
<mrow class="MJX-TeXAtom-ORD">
<mspace width="1em"></mspace>
<mo stretchy="false">(</mo>
<mi>mod</mi>
<mspace width="0.333em"></mspace>
<mn>8</mn>
<mo stretchy="false">)</mo>
</mrow>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle 1^{2}\equiv 3^{2}\equiv 5^{2}\equiv 7^{2}\equiv 1{\pmod {8}}}</annotation>
</semantics>
</math></span><img src="./b15844d04c9780bb8e86c8d878b14b10d2be661c.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:33.27ex; height:3.176ex;" alt="{\displaystyle 1^{2}\equiv 3^{2}\equiv 5^{2}\equiv 7^{2}\equiv 1{\pmod {8}}}" loading="lazy"></span>. The primitive <span class="texhtml mvar" style="font-style:italic;"> λ</span>-roots modulo 8 are 3, 5, and 7. There are no primitive roots modulo 8.</li></ul>
<div class="mw-heading mw-heading2"><h2 id="Recurrence_for_λ(n)">Recurrence for <span class="texhtml"> <i>λ</i>(<i>n</i>)</span></h2></div>
<p>The Carmichael lambda function of a <a href="Prime_power" title="Prime power">prime power</a> can be expressed in terms of the Euler totient. Any number that is not 1 or a prime power can be written uniquely as the product of distinct prime powers, in which case <span class="texhtml mvar" style="font-style:italic;"> λ</span> of the product is the <a href="Least_common_multiple" title="Least common multiple">least common multiple</a> of the <span class="texhtml mvar" style="font-style:italic;"> λ</span> of the prime power factors. Specifically, <span class="texhtml"> <i>λ</i>(<i>n</i>)</span> is given by the recurrence
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \lambda (n)={\begin{cases}\varphi (n)&amp;{\text{if }}n{\text{ is 1, 2, 4, or an odd prime power,}}\\{\tfrac {1}{2}}\varphi (n)&amp;{\text{if }}n=2^{r},\ r\geq 3,\\\operatorname {lcm} {\Bigl (}\lambda (n_{1}),\lambda (n_{2}),\ldots ,\lambda (n_{k}){\Bigr )}&amp;{\text{if }}n=n_{1}n_{2}\ldots n_{k}{\text{ where }}n_{1},n_{2},\ldots ,n_{k}{\text{ are powers of distinct primes.}}\end{cases}}}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>λ<!-- λ --></mi>
<mo stretchy="false">(</mo>
<mi>n</mi>
<mo stretchy="false">)</mo>
<mo>=</mo>
<mrow class="MJX-TeXAtom-ORD">
<mrow>
<mo>{</mo>
<mtable columnalign="left left" rowspacing=".2em" columnspacing="1em" displaystyle="false">
<mtr>
<mtd>
<mi>φ<!-- φ --></mi>
<mo stretchy="false">(</mo>
<mi>n</mi>
<mo stretchy="false">)</mo>
</mtd>
<mtd>
<mrow class="MJX-TeXAtom-ORD">
<mtext>if&nbsp;</mtext>
</mrow>
<mi>n</mi>
<mrow class="MJX-TeXAtom-ORD">
<mtext>&nbsp;is 1, 2, 4, or an odd prime power,</mtext>
</mrow>
</mtd>
</mtr>
<mtr>
<mtd>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="false" scriptlevel="0">
<mfrac>
<mn>1</mn>
<mn>2</mn>
</mfrac>
</mstyle>
</mrow>
<mi>φ<!-- φ --></mi>
<mo stretchy="false">(</mo>
<mi>n</mi>
<mo stretchy="false">)</mo>
</mtd>
<mtd>
<mrow class="MJX-TeXAtom-ORD">
<mtext>if&nbsp;</mtext>
</mrow>
<mi>n</mi>
<mo>=</mo>
<msup>
<mn>2</mn>
<mrow class="MJX-TeXAtom-ORD">
<mi>r</mi>
</mrow>
</msup>
<mo>,</mo>
<mtext>&nbsp;</mtext>
<mi>r</mi>
<mo>≥<!-- ≥ --></mo>
<mn>3</mn>
<mo>,</mo>
</mtd>
</mtr>
<mtr>
<mtd>
<mi>lcm</mi>
<mo>⁡<!-- ⁡ --></mo>
<mrow class="MJX-TeXAtom-ORD">
<mrow class="MJX-TeXAtom-OPEN">
<mo maxsize="1.623em" minsize="1.623em">(</mo>
</mrow>
</mrow>
<mi>λ<!-- λ --></mi>
<mo stretchy="false">(</mo>
<msub>
<mi>n</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>1</mn>
</mrow>
</msub>
<mo stretchy="false">)</mo>
<mo>,</mo>
<mi>λ<!-- λ --></mi>
<mo stretchy="false">(</mo>
<msub>
<mi>n</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>2</mn>
</mrow>
</msub>
<mo stretchy="false">)</mo>
<mo>,</mo>
<mo>…<!-- … --></mo>
<mo>,</mo>
<mi>λ<!-- λ --></mi>
<mo stretchy="false">(</mo>
<msub>
<mi>n</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>k</mi>
</mrow>
</msub>
<mo stretchy="false">)</mo>
<mrow class="MJX-TeXAtom-ORD">
<mrow class="MJX-TeXAtom-CLOSE">
<mo maxsize="1.623em" minsize="1.623em">)</mo>
</mrow>
</mrow>
</mtd>
<mtd>
<mrow class="MJX-TeXAtom-ORD">
<mtext>if&nbsp;</mtext>
</mrow>
<mi>n</mi>
<mo>=</mo>
<msub>
<mi>n</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>1</mn>
</mrow>
</msub>
<msub>
<mi>n</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>2</mn>
</mrow>
</msub>
<mo>…<!-- … --></mo>
<msub>
<mi>n</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>k</mi>
</mrow>
</msub>
<mrow class="MJX-TeXAtom-ORD">
<mtext>&nbsp;where&nbsp;</mtext>
</mrow>
<msub>
<mi>n</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>1</mn>
</mrow>
</msub>
<mo>,</mo>
<msub>
<mi>n</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>2</mn>
</mrow>
</msub>
<mo>,</mo>
<mo>…<!-- … --></mo>
<mo>,</mo>
<msub>
<mi>n</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>k</mi>
</mrow>
</msub>
<mrow class="MJX-TeXAtom-ORD">
<mtext>&nbsp;are powers of distinct primes.</mtext>
</mrow>
</mtd>
</mtr>
</mtable>
<mo fence="true" stretchy="true" symmetric="true"></mo>
</mrow>
</mrow>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \lambda (n)={\begin{cases}\varphi (n)&amp;{\text{if }}n{\text{ is 1, 2, 4, or an odd prime power,}}\\{\tfrac {1}{2}}\varphi (n)&amp;{\text{if }}n=2^{r},\ r\geq 3,\\\operatorname {lcm} {\Bigl (}\lambda (n_{1}),\lambda (n_{2}),\ldots ,\lambda (n_{k}){\Bigr )}&amp;{\text{if }}n=n_{1}n_{2}\ldots n_{k}{\text{ where }}n_{1},n_{2},\ldots ,n_{k}{\text{ are powers of distinct primes.}}\end{cases}}}</annotation>
</semantics>
</math></span><img src="./22c8c0956d8a7c78ed64aa366f84238663cc614b.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -5.005ex; width:110.572ex; height:11.176ex;" alt="{\displaystyle \lambda (n)={\begin{cases}\varphi (n)&amp;{\text{if }}n{\text{ is 1, 2, 4, or an odd prime power,}}\\{\tfrac {1}{2}}\varphi (n)&amp;{\text{if }}n=2^{r},\ r\geq 3,\\\operatorname {lcm} {\Bigl (}\lambda (n_{1}),\lambda (n_{2}),\ldots ,\lambda (n_{k}){\Bigr )}&amp;{\text{if }}n=n_{1}n_{2}\ldots n_{k}{\text{ where }}n_{1},n_{2},\ldots ,n_{k}{\text{ are powers of distinct primes.}}\end{cases}}}" loading="lazy"></span></dd></dl>
<p>Euler's totient for a prime power, that is, a number <span class="texhtml"> <i>p</i><sup><i>r</i></sup></span> with <span class="texhtml"> <i>p</i></span> prime and <span class="texhtml"> <i>r</i> ≥ 1</span>, is given by
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \varphi (p^{r}){=}p^{r-1}(p-1).}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>φ<!-- φ --></mi>
<mo stretchy="false">(</mo>
<msup>
<mi>p</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>r</mi>
</mrow>
</msup>
<mo stretchy="false">)</mo>
<mrow class="MJX-TeXAtom-ORD">
<mo>=</mo>
</mrow>
<msup>
<mi>p</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>r</mi>
<mo>−<!-- − --></mo>
<mn>1</mn>
</mrow>
</msup>
<mo stretchy="false">(</mo>
<mi>p</mi>
<mo>−<!-- − --></mo>
<mn>1</mn>
<mo stretchy="false">)</mo>
<mo>.</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \varphi (p^{r}){=}p^{r-1}(p-1).}</annotation>
</semantics>
</math></span><img src="./711cb78afbf95e074a10662387e57ddd3841c542.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:19.153ex; height:3.176ex;" alt="{\displaystyle \varphi (p^{r}){=}p^{r-1}(p-1).}" loading="lazy"></span></dd></dl>
<div class="mw-heading mw-heading2"><h2 id="Carmichael's_theorems">Carmichael's theorems</h2></div>
<p>
Carmichael proved two theorems that, together, establish that if <span class="texhtml"> <i>λ</i>(<i>n</i>)</span> is considered as defined by the recurrence of the previous section, then it satisfies the property stated in the introduction, namely that it is the smallest positive integer <span class="texhtml mvar" style="font-style:italic;"> m</span> such that <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle a^{m}\equiv 1{\pmod {n}}}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<msup>
<mi>a</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>m</mi>
</mrow>
</msup>
<mo>≡<!-- ≡ --></mo>
<mn>1</mn>
<mrow class="MJX-TeXAtom-ORD">
<mspace width="1em"></mspace>
<mo stretchy="false">(</mo>
<mi>mod</mi>
<mspace width="0.333em"></mspace>
<mi>n</mi>
<mo stretchy="false">)</mo>
</mrow>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle a^{m}\equiv 1{\pmod {n}}}</annotation>
</semantics>
</math></span><img src="./6295499efc8f39a0cd7ec690788edcb794eb2bde.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:18.245ex; height:2.843ex;" alt="{\displaystyle a^{m}\equiv 1{\pmod {n}}}" loading="lazy"></span> for all <span class="texhtml mvar" style="font-style:italic;"> a</span> relatively prime to <span class="texhtml mvar" style="font-style:italic;"> n</span>.
</p>
<style data-mw-deduplicate="TemplateStyles:r1110004140">
/* start https://en.wikipedia.org/ */


.mw-parser-output .math_theorem{margin:1em 2em;padding:0.5em 1em 0.4em;border:1px solid #aaa;overflow:hidden}@media(max-width:500px){.mw-parser-output .math_theorem{margin:1em 0em;padding:0.5em 0.5em 0.4em}}


/* end https://en.wikipedia.org/ */
</style><div class="math_theorem" style="">
<p><strong class="theorem-name">Theorem 1</strong><span class="theoreme-tiret">—</span>If <span class="texhtml mvar" style="font-style:italic;"> a</span> is relatively prime to <span class="texhtml mvar" style="font-style:italic;"> n</span> then <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle a^{\lambda (n)}\equiv 1{\pmod {n}}}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<msup>
<mi>a</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>λ<!-- λ --></mi>
<mo stretchy="false">(</mo>
<mi>n</mi>
<mo stretchy="false">)</mo>
</mrow>
</msup>
<mo>≡<!-- ≡ --></mo>
<mn>1</mn>
<mrow class="MJX-TeXAtom-ORD">
<mspace width="1em"></mspace>
<mo stretchy="false">(</mo>
<mi>mod</mi>
<mspace width="0.333em"></mspace>
<mi>n</mi>
<mo stretchy="false">)</mo>
</mrow>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle a^{\lambda (n)}\equiv 1{\pmod {n}}}</annotation>
</semantics>
</math></span><img src="./2e475506bcb72caae57599e0ccafa7efe023be9c.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:20.026ex; height:3.343ex;" alt="{\displaystyle a^{\lambda (n)}\equiv 1{\pmod {n}}}" loading="lazy"></span>.<sup id="cite_ref-2" class="reference"><a href="#cite_note-2"><span class="cite-bracket">[</span>2<span class="cite-bracket">]</span></a></sup>
</p>
</div>
<p>This implies that the order of every element of the multiplicative group of integers modulo <span class="texhtml mvar" style="font-style:italic;"> n</span> divides <span class="texhtml"> <i>λ</i>(<i>n</i>)</span>. Carmichael calls an element <span class="texhtml mvar" style="font-style:italic;"> a</span> for which <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle a^{\lambda (n)}}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<msup>
<mi>a</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>λ<!-- λ --></mi>
<mo stretchy="false">(</mo>
<mi>n</mi>
<mo stretchy="false">)</mo>
</mrow>
</msup>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle a^{\lambda (n)}}</annotation>
</semantics>
</math></span><img src="./473ca65248018952ce1e62cb03f0352b8924b2ea.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:4.686ex; height:2.843ex;" alt="{\displaystyle a^{\lambda (n)}}" loading="lazy"></span> is the least power of <span class="texhtml mvar" style="font-style:italic;"> a</span> congruent to 1 (mod <span class="texhtml mvar" style="font-style:italic;"> n</span>) a <i>primitive λ-root modulo n</i>.<sup id="cite_ref-3" class="reference"><a href="#cite_note-3"><span class="cite-bracket">[</span>3<span class="cite-bracket">]</span></a></sup> (This is not to be confused with a <a href="Primitive_root_modulo_n" title="Primitive root modulo n">primitive root modulo <span class="texhtml mvar" style="font-style:italic;"> n</span></a>, which Carmichael sometimes refers to as a primitive <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \varphi }">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>φ<!-- φ --></mi>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \varphi }</annotation>
</semantics>
</math></span><img src="./33ee699558d09cf9d653f6351f9fda0b2f4aaa3e.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:1.52ex; height:2.176ex;" alt="{\displaystyle \varphi }" loading="lazy"></span>-root modulo <span class="texhtml mvar" style="font-style:italic;"> n</span>.)
</p>
<div class="math_theorem" style="">
<p><strong class="theorem-name">Theorem 2</strong><span class="theoreme-tiret">—</span>For every positive integer <span class="texhtml mvar" style="font-style:italic;"> n</span> there exists a primitive <span class="texhtml mvar" style="font-style:italic;"> λ</span>-root modulo <span class="texhtml mvar" style="font-style:italic;"> n</span>. Moreover, if <span class="texhtml mvar" style="font-style:italic;"> g</span> is such a root, then there are <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \varphi (\lambda (n))}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>φ<!-- φ --></mi>
<mo stretchy="false">(</mo>
<mi>λ<!-- λ --></mi>
<mo stretchy="false">(</mo>
<mi>n</mi>
<mo stretchy="false">)</mo>
<mo stretchy="false">)</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \varphi (\lambda (n))}</annotation>
</semantics>
</math></span><img src="./51437c7e1b33eb915c3498ada17541d57fa725c1.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:7.889ex; height:2.843ex;" alt="{\displaystyle \varphi (\lambda (n))}" loading="lazy"></span> primitive <span class="texhtml mvar" style="font-style:italic;"> λ</span>-roots that are congruent to powers of <span class="texhtml mvar" style="font-style:italic;"> g</span>.<sup id="cite_ref-4" class="reference"><a href="#cite_note-4"><span class="cite-bracket">[</span>4<span class="cite-bracket">]</span></a></sup>
</p>
</div>
<p>If <span class="texhtml mvar" style="font-style:italic;"> g</span> is one of the primitive <span class="texhtml mvar" style="font-style:italic;"> λ</span>-roots guaranteed by the theorem, then <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle g^{m}\equiv 1{\pmod {n}}}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<msup>
<mi>g</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>m</mi>
</mrow>
</msup>
<mo>≡<!-- ≡ --></mo>
<mn>1</mn>
<mrow class="MJX-TeXAtom-ORD">
<mspace width="1em"></mspace>
<mo stretchy="false">(</mo>
<mi>mod</mi>
<mspace width="0.333em"></mspace>
<mi>n</mi>
<mo stretchy="false">)</mo>
</mrow>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle g^{m}\equiv 1{\pmod {n}}}</annotation>
</semantics>
</math></span><img src="./c63ff9fb4421a3577195c1394651e87c70b49c59.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:18.133ex; height:2.843ex;" alt="{\displaystyle g^{m}\equiv 1{\pmod {n}}}" loading="lazy"></span> has no positive integer solutions <span class="texhtml mvar" style="font-style:italic;"> m</span> less than <span class="texhtml"> <i>λ</i>(<i>n</i>)</span>, showing that there is no positive <span class="texhtml"> <i>m</i> &lt; <i>λ</i>(<i>n</i>)</span> such that <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle a^{m}\equiv 1{\pmod {n}}}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<msup>
<mi>a</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>m</mi>
</mrow>
</msup>
<mo>≡<!-- ≡ --></mo>
<mn>1</mn>
<mrow class="MJX-TeXAtom-ORD">
<mspace width="1em"></mspace>
<mo stretchy="false">(</mo>
<mi>mod</mi>
<mspace width="0.333em"></mspace>
<mi>n</mi>
<mo stretchy="false">)</mo>
</mrow>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle a^{m}\equiv 1{\pmod {n}}}</annotation>
</semantics>
</math></span><img src="./6295499efc8f39a0cd7ec690788edcb794eb2bde.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:18.245ex; height:2.843ex;" alt="{\displaystyle a^{m}\equiv 1{\pmod {n}}}" loading="lazy"></span> for all <span class="texhtml mvar" style="font-style:italic;"> a</span> relatively prime to <span class="texhtml mvar" style="font-style:italic;"> n</span>.
</p><p>The second statement of Theorem 2 does not imply that all primitive <span class="texhtml mvar" style="font-style:italic;"> λ</span>-roots modulo <span class="texhtml mvar" style="font-style:italic;"> n</span> are congruent to powers of a single root <span class="texhtml mvar" style="font-style:italic;"> g</span>.<sup id="cite_ref-5" class="reference"><a href="#cite_note-5"><span class="cite-bracket">[</span>5<span class="cite-bracket">]</span></a></sup> For example, if <span class="texhtml"> <i>n</i> = 15</span>, then <span class="texhtml"> <i>λ</i>(<i>n</i>) = 4</span> while <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \varphi (n)=8}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>φ<!-- φ --></mi>
<mo stretchy="false">(</mo>
<mi>n</mi>
<mo stretchy="false">)</mo>
<mo>=</mo>
<mn>8</mn>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \varphi (n)=8}</annotation>
</semantics>
</math></span><img src="./2036c0ac806e07b8c751fbac720051359cd53670.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:8.985ex; height:2.843ex;" alt="{\displaystyle \varphi (n)=8}" loading="lazy"></span> and <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \varphi (\lambda (n))=2}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>φ<!-- φ --></mi>
<mo stretchy="false">(</mo>
<mi>λ<!-- λ --></mi>
<mo stretchy="false">(</mo>
<mi>n</mi>
<mo stretchy="false">)</mo>
<mo stretchy="false">)</mo>
<mo>=</mo>
<mn>2</mn>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \varphi (\lambda (n))=2}</annotation>
</semantics>
</math></span><img src="./53bdbcac5e38bad232b72dac87c50f9aa3e77c9a.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:12.15ex; height:2.843ex;" alt="{\displaystyle \varphi (\lambda (n))=2}" loading="lazy"></span>. There are four primitive <span class="texhtml mvar" style="font-style:italic;"> λ</span>-roots modulo 15, namely 2, 7, 8, and 13 as <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle 1\equiv 2^{4}\equiv 8^{4}\equiv 7^{4}\equiv 13^{4}}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mn>1</mn>
<mo>≡<!-- ≡ --></mo>
<msup>
<mn>2</mn>
<mrow class="MJX-TeXAtom-ORD">
<mn>4</mn>
</mrow>
</msup>
<mo>≡<!-- ≡ --></mo>
<msup>
<mn>8</mn>
<mrow class="MJX-TeXAtom-ORD">
<mn>4</mn>
</mrow>
</msup>
<mo>≡<!-- ≡ --></mo>
<msup>
<mn>7</mn>
<mrow class="MJX-TeXAtom-ORD">
<mn>4</mn>
</mrow>
</msup>
<mo>≡<!-- ≡ --></mo>
<msup>
<mn>13</mn>
<mrow class="MJX-TeXAtom-ORD">
<mn>4</mn>
</mrow>
</msup>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle 1\equiv 2^{4}\equiv 8^{4}\equiv 7^{4}\equiv 13^{4}}</annotation>
</semantics>
</math></span><img src="./d678d8b242ba198634a86b6f0c86870884a869f1.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:23.586ex; height:2.676ex;" alt="{\displaystyle 1\equiv 2^{4}\equiv 8^{4}\equiv 7^{4}\equiv 13^{4}}" loading="lazy"></span>. The roots 2 and 8 are congruent to powers of each other and the roots 7 and 13 are congruent to powers of each other, but neither 7 nor 13 is congruent to a power of 2 or 8 and vice versa. The other four elements of the multiplicative group modulo 15, namely 1, 4 (which satisfies <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle 4\equiv 2^{2}\equiv 8^{2}\equiv 7^{2}\equiv 13^{2}}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mn>4</mn>
<mo>≡<!-- ≡ --></mo>
<msup>
<mn>2</mn>
<mrow class="MJX-TeXAtom-ORD">
<mn>2</mn>
</mrow>
</msup>
<mo>≡<!-- ≡ --></mo>
<msup>
<mn>8</mn>
<mrow class="MJX-TeXAtom-ORD">
<mn>2</mn>
</mrow>
</msup>
<mo>≡<!-- ≡ --></mo>
<msup>
<mn>7</mn>
<mrow class="MJX-TeXAtom-ORD">
<mn>2</mn>
</mrow>
</msup>
<mo>≡<!-- ≡ --></mo>
<msup>
<mn>13</mn>
<mrow class="MJX-TeXAtom-ORD">
<mn>2</mn>
</mrow>
</msup>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle 4\equiv 2^{2}\equiv 8^{2}\equiv 7^{2}\equiv 13^{2}}</annotation>
</semantics>
</math></span><img src="./9074d6877ba22a2a1dac0dd4ab2419b028e9df0d.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:23.586ex; height:2.676ex;" alt="{\displaystyle 4\equiv 2^{2}\equiv 8^{2}\equiv 7^{2}\equiv 13^{2}}" loading="lazy"></span>), 11, and 14, are not primitive <span class="texhtml mvar" style="font-style:italic;"> λ</span>-roots modulo 15.
</p><p>For a contrasting example, if <span class="texhtml"> <i>n</i> = 9</span>, then <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \lambda (n)=\varphi (n)=6}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>λ<!-- λ --></mi>
<mo stretchy="false">(</mo>
<mi>n</mi>
<mo stretchy="false">)</mo>
<mo>=</mo>
<mi>φ<!-- φ --></mi>
<mo stretchy="false">(</mo>
<mi>n</mi>
<mo stretchy="false">)</mo>
<mo>=</mo>
<mn>6</mn>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \lambda (n)=\varphi (n)=6}</annotation>
</semantics>
</math></span><img src="./54e6711ca9d76332b47ccc8d3d9e4ea49ba75ccc.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:16.643ex; height:2.843ex;" alt="{\displaystyle \lambda (n)=\varphi (n)=6}" loading="lazy"></span> and <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \varphi (\lambda (n))=2}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>φ<!-- φ --></mi>
<mo stretchy="false">(</mo>
<mi>λ<!-- λ --></mi>
<mo stretchy="false">(</mo>
<mi>n</mi>
<mo stretchy="false">)</mo>
<mo stretchy="false">)</mo>
<mo>=</mo>
<mn>2</mn>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \varphi (\lambda (n))=2}</annotation>
</semantics>
</math></span><img src="./53bdbcac5e38bad232b72dac87c50f9aa3e77c9a.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:12.15ex; height:2.843ex;" alt="{\displaystyle \varphi (\lambda (n))=2}" loading="lazy"></span>. There are two primitive <span class="texhtml mvar" style="font-style:italic;"> λ</span>-roots modulo 9, namely 2 and 5, each of which is congruent to the fifth power of the other. They are also both primitive <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \varphi }">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>φ<!-- φ --></mi>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \varphi }</annotation>
</semantics>
</math></span><img src="./33ee699558d09cf9d653f6351f9fda0b2f4aaa3e.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:1.52ex; height:2.176ex;" alt="{\displaystyle \varphi }" loading="lazy"></span>-roots modulo 9.
</p>
<div class="mw-heading mw-heading2"><h2 id="Properties_of_the_Carmichael_function">Properties of the Carmichael function</h2></div>
<p>In this section, an <a href="Integer" title="Integer">integer</a> <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle n}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>n</mi>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle n}</annotation>
</semantics>
</math></span><img src="./a601995d55609f2d9f5e233e36fbe9ea26011b3b.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:1.395ex; height:1.676ex;" alt="{\displaystyle n}" loading="lazy"></span> is divisible by a nonzero integer <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle m}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>m</mi>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle m}</annotation>
</semantics>
</math></span><img src="./0a07d98bb302f3856cbabc47b2b9016692e3f7bc.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:2.04ex; height:1.676ex;" alt="{\displaystyle m}" loading="lazy"></span> if there exists an integer <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle k}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>k</mi>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle k}</annotation>
</semantics>
</math></span><img src="./c3c9a2c7b599b37105512c5d570edc034056dd40.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:1.211ex; height:2.176ex;" alt="{\displaystyle k}" loading="lazy"></span> such that <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle n=km}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>n</mi>
<mo>=</mo>
<mi>k</mi>
<mi>m</mi>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle n=km}</annotation>
</semantics>
</math></span><img src="./3a1645879dc35ab812df3d8928505ac28d8870f6.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:7.745ex; height:2.176ex;" alt="{\displaystyle n=km}" loading="lazy"></span>. This is written as
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle m\mid n.}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>m</mi>
<mo>∣<!-- ∣ --></mo>
<mi>n</mi>
<mo>.</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle m\mid n.}</annotation>
</semantics>
</math></span><img src="./5ab022dece84389d986d53e94e1da0d5ef7229a3.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:6.019ex; height:2.843ex;" alt="{\displaystyle m\mid n.}" loading="lazy"></span></dd></dl>
<div class="mw-heading mw-heading3"><h3 id="A_consequence_of_minimality_of_λ(n)">A consequence of minimality of <span class="texhtml"> <i>λ</i>(<i>n</i>)</span></h3></div>
<p>Suppose <span class="texhtml"> <i>a<sup>m</sup></i> ≡ 1 (mod <i>n</i>)</span> for all numbers <span class="texhtml mvar" style="font-style:italic;"> a</span> coprime with <span class="texhtml mvar" style="font-style:italic;"> n</span>. Then <span class="texhtml"> <i>λ</i>(<i>n</i>) | <i>m</i></span>.
</p><p><b>Proof:</b> If <span class="texhtml"> <i>m</i> = <i>kλ</i>(<i>n</i>) + <i>r</i></span> with <span class="texhtml"> 0 ≤ <i>r</i> &lt; <i>λ</i>(<i>n</i>)</span>, then
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle a^{r}=1^{k}\cdot a^{r}\equiv \left(a^{\lambda (n)}\right)^{k}\cdot a^{r}=a^{k\lambda (n)+r}=a^{m}\equiv 1{\pmod {n}}}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<msup>
<mi>a</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>r</mi>
</mrow>
</msup>
<mo>=</mo>
<msup>
<mn>1</mn>
<mrow class="MJX-TeXAtom-ORD">
<mi>k</mi>
</mrow>
</msup>
<mo>⋅<!-- ⋅ --></mo>
<msup>
<mi>a</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>r</mi>
</mrow>
</msup>
<mo>≡<!-- ≡ --></mo>
<msup>
<mrow>
<mo>(</mo>
<msup>
<mi>a</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>λ<!-- λ --></mi>
<mo stretchy="false">(</mo>
<mi>n</mi>
<mo stretchy="false">)</mo>
</mrow>
</msup>
<mo>)</mo>
</mrow>
<mrow class="MJX-TeXAtom-ORD">
<mi>k</mi>
</mrow>
</msup>
<mo>⋅<!-- ⋅ --></mo>
<msup>
<mi>a</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>r</mi>
</mrow>
</msup>
<mo>=</mo>
<msup>
<mi>a</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>k</mi>
<mi>λ<!-- λ --></mi>
<mo stretchy="false">(</mo>
<mi>n</mi>
<mo stretchy="false">)</mo>
<mo>+</mo>
<mi>r</mi>
</mrow>
</msup>
<mo>=</mo>
<msup>
<mi>a</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>m</mi>
</mrow>
</msup>
<mo>≡<!-- ≡ --></mo>
<mn>1</mn>
<mrow class="MJX-TeXAtom-ORD">
<mspace width="1em"></mspace>
<mo stretchy="false">(</mo>
<mi>mod</mi>
<mspace width="0.333em"></mspace>
<mi>n</mi>
<mo stretchy="false">)</mo>
</mrow>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle a^{r}=1^{k}\cdot a^{r}\equiv \left(a^{\lambda (n)}\right)^{k}\cdot a^{r}=a^{k\lambda (n)+r}=a^{m}\equiv 1{\pmod {n}}}</annotation>
</semantics>
</math></span><img src="./b149c64e0b0d5121a4c0d999a25eda1567af9eda.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -1.838ex; width:58.971ex; height:5.343ex;" alt="{\displaystyle a^{r}=1^{k}\cdot a^{r}\equiv \left(a^{\lambda (n)}\right)^{k}\cdot a^{r}=a^{k\lambda (n)+r}=a^{m}\equiv 1{\pmod {n}}}" loading="lazy"></span></dd></dl>
<p>for all numbers <span class="texhtml mvar" style="font-style:italic;"> a</span> coprime with <span class="texhtml mvar" style="font-style:italic;"> n</span>. It follows that <span class="texhtml"><i>r</i> = 0</span> since <span class="texhtml"> <i>r</i> &lt; <i>λ</i>(<i>n</i>)</span> and <span class="texhtml"> <i>λ</i>(<i>n</i>)</span> is the minimal positive exponent for which the congruence holds for all <span class="texhtml mvar" style="font-style:italic;"> a</span> coprime with <span class="texhtml mvar" style="font-style:italic;"> n</span>.
</p>
<div class="mw-heading mw-heading3"><h3 id="λ(n)_divides_φ(n)"><span class="texhtml"> <i>λ</i>(<i>n</i>)</span> divides <span class="texhtml"> <i>φ</i>(<i>n</i>)</span></h3></div>
<p>This follows from elementary <a href="Group_theory" title="Group theory">group theory</a>, because the exponent of any <a href="Finite_group" title="Finite group">finite group</a> must divide the order of the group. <span class="texhtml"> <i>λ</i>(<i>n</i>)</span> is the exponent of the multiplicative group of integers modulo <span class="texhtml mvar" style="font-style:italic;"> n</span> while <span class="texhtml"> <i>φ</i>(<i>n</i>)</span> is the order of that group. In particular, the two must be equal in the cases where the multiplicative group is cyclic due to the existence of a <a href="Primitive_root_modulo_n" title="Primitive root modulo n">primitive root</a>, which is the case for odd prime powers.
</p><p>We can thus view Carmichael's theorem as a sharpening of <a href="Euler's_theorem" title="Euler's theorem">Euler's theorem</a>.
</p>
<div class="mw-heading mw-heading3"><h3 id="Divisibility">Divisibility</h3></div>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle a\,|\,b\Rightarrow \lambda (a)\,|\,\lambda (b)}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>a</mi>
<mspace width="thinmathspace"></mspace>
<mrow class="MJX-TeXAtom-ORD">
<mo stretchy="false">|</mo>
</mrow>
<mspace width="thinmathspace"></mspace>
<mi>b</mi>
<mo stretchy="false">⇒<!-- ⇒ --></mo>
<mi>λ<!-- λ --></mi>
<mo stretchy="false">(</mo>
<mi>a</mi>
<mo stretchy="false">)</mo>
<mspace width="thinmathspace"></mspace>
<mrow class="MJX-TeXAtom-ORD">
<mo stretchy="false">|</mo>
</mrow>
<mspace width="thinmathspace"></mspace>
<mi>λ<!-- λ --></mi>
<mo stretchy="false">(</mo>
<mi>b</mi>
<mo stretchy="false">)</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle a\,|\,b\Rightarrow \lambda (a)\,|\,\lambda (b)}</annotation>
</semantics>
</math></span><img src="./448a742da33b60ccbf31c74c04eb41e8697f73ed.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:17.24ex; height:2.843ex;" alt="{\displaystyle a\,|\,b\Rightarrow \lambda (a)\,|\,\lambda (b)}" loading="lazy"></span></dd></dl>
<p><b>Proof.</b>
</p><p>By definition, for any integer <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle k}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>k</mi>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle k}</annotation>
</semantics>
</math></span><img src="./c3c9a2c7b599b37105512c5d570edc034056dd40.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:1.211ex; height:2.176ex;" alt="{\displaystyle k}" loading="lazy"></span> with <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \gcd(k,b)=1}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mo movablelimits="true" form="prefix">gcd</mo>
<mo stretchy="false">(</mo>
<mi>k</mi>
<mo>,</mo>
<mi>b</mi>
<mo stretchy="false">)</mo>
<mo>=</mo>
<mn>1</mn>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \gcd(k,b)=1}</annotation>
</semantics>
</math></span><img src="./249744635d33a732fa004574ae9d19827a2d24a7.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:12.8ex; height:2.843ex;" alt="{\displaystyle \gcd(k,b)=1}" loading="lazy"></span> (and thus also <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \gcd(k,a)=1}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mo movablelimits="true" form="prefix">gcd</mo>
<mo stretchy="false">(</mo>
<mi>k</mi>
<mo>,</mo>
<mi>a</mi>
<mo stretchy="false">)</mo>
<mo>=</mo>
<mn>1</mn>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \gcd(k,a)=1}</annotation>
</semantics>
</math></span><img src="./6b507ceccc912e2a211c8f5f235d90654b977db7.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:13.033ex; height:2.843ex;" alt="{\displaystyle \gcd(k,a)=1}" loading="lazy"></span>), we have that <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle b\,|\,(k^{\lambda (b)}-1)}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>b</mi>
<mspace width="thinmathspace"></mspace>
<mrow class="MJX-TeXAtom-ORD">
<mo stretchy="false">|</mo>
</mrow>
<mspace width="thinmathspace"></mspace>
<mo stretchy="false">(</mo>
<msup>
<mi>k</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>λ<!-- λ --></mi>
<mo stretchy="false">(</mo>
<mi>b</mi>
<mo stretchy="false">)</mo>
</mrow>
</msup>
<mo>−<!-- − --></mo>
<mn>1</mn>
<mo stretchy="false">)</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle b\,|\,(k^{\lambda (b)}-1)}</annotation>
</semantics>
</math></span><img src="./5d87ac2c62fa68510edaa1899e8f77c7fc33ef79.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:12.617ex; height:3.343ex;" alt="{\displaystyle b\,|\,(k^{\lambda (b)}-1)}" loading="lazy"></span> , and therefore <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle a\,|\,(k^{\lambda (b)}-1)}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>a</mi>
<mspace width="thinmathspace"></mspace>
<mrow class="MJX-TeXAtom-ORD">
<mo stretchy="false">|</mo>
</mrow>
<mspace width="thinmathspace"></mspace>
<mo stretchy="false">(</mo>
<msup>
<mi>k</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>λ<!-- λ --></mi>
<mo stretchy="false">(</mo>
<mi>b</mi>
<mo stretchy="false">)</mo>
</mrow>
</msup>
<mo>−<!-- − --></mo>
<mn>1</mn>
<mo stretchy="false">)</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle a\,|\,(k^{\lambda (b)}-1)}</annotation>
</semantics>
</math></span><img src="./a5e61e1f9cb41b188fef2f775478707ab9ee2301.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:12.85ex; height:3.343ex;" alt="{\displaystyle a\,|\,(k^{\lambda (b)}-1)}" loading="lazy"></span>. This establishes that <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle k^{\lambda (b)}\equiv 1{\pmod {a}}}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<msup>
<mi>k</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>λ<!-- λ --></mi>
<mo stretchy="false">(</mo>
<mi>b</mi>
<mo stretchy="false">)</mo>
</mrow>
</msup>
<mo>≡<!-- ≡ --></mo>
<mn>1</mn>
<mrow class="MJX-TeXAtom-ORD">
<mspace width="1em"></mspace>
<mo stretchy="false">(</mo>
<mi>mod</mi>
<mspace width="0.333em"></mspace>
<mi>a</mi>
<mo stretchy="false">)</mo>
</mrow>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle k^{\lambda (b)}\equiv 1{\pmod {a}}}</annotation>
</semantics>
</math></span><img src="./61e6c2d9be9b3c87e275e9f080c142af12791836.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:19.561ex; height:3.343ex;" alt="{\displaystyle k^{\lambda (b)}\equiv 1{\pmod {a}}}" loading="lazy"></span> for all <span class="texhtml mvar" style="font-style:italic;"> k</span> relatively prime to <span class="texhtml mvar" style="font-style:italic;"> a</span>. By the consequence of minimality proved above, we have <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \lambda (a)\,|\,\lambda (b)}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>λ<!-- λ --></mi>
<mo stretchy="false">(</mo>
<mi>a</mi>
<mo stretchy="false">)</mo>
<mspace width="thinmathspace"></mspace>
<mrow class="MJX-TeXAtom-ORD">
<mo stretchy="false">|</mo>
</mrow>
<mspace width="thinmathspace"></mspace>
<mi>λ<!-- λ --></mi>
<mo stretchy="false">(</mo>
<mi>b</mi>
<mo stretchy="false">)</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \lambda (a)\,|\,\lambda (b)}</annotation>
</semantics>
</math></span><img src="./86fe3c4dd2a26935e4497431aca57d92f9a2cb2b.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:9.977ex; height:2.843ex;" alt="{\displaystyle \lambda (a)\,|\,\lambda (b)}" loading="lazy"></span>.
</p>
<div class="mw-heading mw-heading3"><h3 id="Composition">Composition</h3></div>
<p>For all positive integers <span class="texhtml mvar" style="font-style:italic;"> a</span> and <span class="texhtml mvar" style="font-style:italic;"> b</span> it holds that
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \lambda (\mathrm {lcm} (a,b))=\mathrm {lcm} (\lambda (a),\lambda (b))}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>λ<!-- λ --></mi>
<mo stretchy="false">(</mo>
<mrow class="MJX-TeXAtom-ORD">
<mi mathvariant="normal">l</mi>
<mi mathvariant="normal">c</mi>
<mi mathvariant="normal">m</mi>
</mrow>
<mo stretchy="false">(</mo>
<mi>a</mi>
<mo>,</mo>
<mi>b</mi>
<mo stretchy="false">)</mo>
<mo stretchy="false">)</mo>
<mo>=</mo>
<mrow class="MJX-TeXAtom-ORD">
<mi mathvariant="normal">l</mi>
<mi mathvariant="normal">c</mi>
<mi mathvariant="normal">m</mi>
</mrow>
<mo stretchy="false">(</mo>
<mi>λ<!-- λ --></mi>
<mo stretchy="false">(</mo>
<mi>a</mi>
<mo stretchy="false">)</mo>
<mo>,</mo>
<mi>λ<!-- λ --></mi>
<mo stretchy="false">(</mo>
<mi>b</mi>
<mo stretchy="false">)</mo>
<mo stretchy="false">)</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \lambda (\mathrm {lcm} (a,b))=\mathrm {lcm} (\lambda (a),\lambda (b))}</annotation>
</semantics>
</math></span><img src="./a94bb6137a29ab109abc96b5f81c79ea85ecb241.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:29.963ex; height:2.843ex;" alt="{\displaystyle \lambda (\mathrm {lcm} (a,b))=\mathrm {lcm} (\lambda (a),\lambda (b))}" loading="lazy"></span>.</dd></dl>
<p>This is an immediate consequence of the recurrence for the Carmichael function.
</p>
<div class="mw-heading mw-heading3"><h3 id="Exponential_cycle_length">Exponential cycle length</h3></div>
<p>If <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle r_{\mathrm {max} }=\max _{i}\{r_{i}\}}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<msub>
<mi>r</mi>
<mrow class="MJX-TeXAtom-ORD">
<mrow class="MJX-TeXAtom-ORD">
<mi mathvariant="normal">m</mi>
<mi mathvariant="normal">a</mi>
<mi mathvariant="normal">x</mi>
</mrow>
</mrow>
</msub>
<mo>=</mo>
<munder>
<mo movablelimits="true" form="prefix">max</mo>
<mrow class="MJX-TeXAtom-ORD">
<mi>i</mi>
</mrow>
</munder>
<mo fence="false" stretchy="false">{</mo>
<msub>
<mi>r</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>i</mi>
</mrow>
</msub>
<mo fence="false" stretchy="false">}</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle r_{\mathrm {max} }=\max _{i}\{r_{i}\}}</annotation>
</semantics>
</math></span><img src="./8d04b325740d26119d2d24e8fb3569634c9d20b3.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -2.005ex; width:15.937ex; height:4.009ex;" alt="{\displaystyle r_{\mathrm {max} }=\max _{i}\{r_{i}\}}" loading="lazy"></span> is the biggest exponent in the prime factorization <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle n=p_{1}^{r_{1}}p_{2}^{r_{2}}\cdots p_{k}^{r_{k}}}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>n</mi>
<mo>=</mo>
<msubsup>
<mi>p</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>1</mn>
</mrow>
<mrow class="MJX-TeXAtom-ORD">
<msub>
<mi>r</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>1</mn>
</mrow>
</msub>
</mrow>
</msubsup>
<msubsup>
<mi>p</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>2</mn>
</mrow>
<mrow class="MJX-TeXAtom-ORD">
<msub>
<mi>r</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>2</mn>
</mrow>
</msub>
</mrow>
</msubsup>
<mo>⋯<!-- ⋯ --></mo>
<msubsup>
<mi>p</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>k</mi>
</mrow>
<mrow class="MJX-TeXAtom-ORD">
<msub>
<mi>r</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>k</mi>
</mrow>
</msub>
</mrow>
</msubsup>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle n=p_{1}^{r_{1}}p_{2}^{r_{2}}\cdots p_{k}^{r_{k}}}</annotation>
</semantics>
</math></span><img src="./c2c65ea3b23584241e69dd75a2bd439af0e03ca2.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -1.005ex; width:16.943ex; height:3.176ex;" alt="{\displaystyle n=p_{1}^{r_{1}}p_{2}^{r_{2}}\cdots p_{k}^{r_{k}}}" loading="lazy"></span> of <span class="texhtml mvar" style="font-style:italic;"> n</span>, then for all <span class="texhtml mvar" style="font-style:italic;"> a</span> (including those not coprime to <span class="texhtml mvar" style="font-style:italic;"> n</span>) and all <span class="texhtml"> <i>r</i> ≥ <i>r</i><sub>max</sub></span>,
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle a^{r}\equiv a^{\lambda (n)+r}{\pmod {n}}.}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<msup>
<mi>a</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>r</mi>
</mrow>
</msup>
<mo>≡<!-- ≡ --></mo>
<msup>
<mi>a</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>λ<!-- λ --></mi>
<mo stretchy="false">(</mo>
<mi>n</mi>
<mo stretchy="false">)</mo>
<mo>+</mo>
<mi>r</mi>
</mrow>
</msup>
<mrow class="MJX-TeXAtom-ORD">
<mspace width="1em"></mspace>
<mo stretchy="false">(</mo>
<mi>mod</mi>
<mspace width="0.333em"></mspace>
<mi>n</mi>
<mo stretchy="false">)</mo>
</mrow>
<mo>.</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle a^{r}\equiv a^{\lambda (n)+r}{\pmod {n}}.}</annotation>
</semantics>
</math></span><img src="./c010538ffaab692c767f4ae2cbe2e8e22de90f0f.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:23.734ex; height:3.343ex;" alt="{\displaystyle a^{r}\equiv a^{\lambda (n)+r}{\pmod {n}}.}" loading="lazy"></span></dd></dl>
<p>In particular, for <a href="Square-free_integer" title="Square-free integer">square-free</a> <span class="texhtml mvar" style="font-style:italic;"> n</span> (<span class="texhtml"> <i>r</i><sub>max</sub> = 1</span>), for all <span class="texhtml mvar" style="font-style:italic;"> a</span> we have
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle a\equiv a^{\lambda (n)+1}{\pmod {n}}.}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>a</mi>
<mo>≡<!-- ≡ --></mo>
<msup>
<mi>a</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>λ<!-- λ --></mi>
<mo stretchy="false">(</mo>
<mi>n</mi>
<mo stretchy="false">)</mo>
<mo>+</mo>
<mn>1</mn>
</mrow>
</msup>
<mrow class="MJX-TeXAtom-ORD">
<mspace width="1em"></mspace>
<mo stretchy="false">(</mo>
<mi>mod</mi>
<mspace width="0.333em"></mspace>
<mi>n</mi>
<mo stretchy="false">)</mo>
</mrow>
<mo>.</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle a\equiv a^{\lambda (n)+1}{\pmod {n}}.}</annotation>
</semantics>
</math></span><img src="./8b6f43d890e1e43807d5c56ea3f2c250cda0dd65.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:22.84ex; height:3.343ex;" alt="{\displaystyle a\equiv a^{\lambda (n)+1}{\pmod {n}}.}" loading="lazy"></span></dd></dl>
<div class="mw-heading mw-heading3"><h3 id="Average_value">Average value</h3></div>
<p>For any <span class="texhtml"> <i>n</i> ≥ 16</span>:<sup id="cite_ref-6" class="reference"><a href="#cite_note-6"><span class="cite-bracket">[</span>6<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-HBII194_7-0" class="reference"><a href="#cite_note-HBII194-7"><span class="cite-bracket">[</span>7<span class="cite-bracket">]</span></a></sup>
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle {\frac {1}{n}}\sum _{i\leq n}\lambda (i)={\frac {n}{\ln n}}e^{B(1+o(1))\ln \ln n/(\ln \ln \ln n)}}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<mn>1</mn>
<mi>n</mi>
</mfrac>
</mrow>
<munder>
<mo>∑<!-- ∑ --></mo>
<mrow class="MJX-TeXAtom-ORD">
<mi>i</mi>
<mo>≤<!-- ≤ --></mo>
<mi>n</mi>
</mrow>
</munder>
<mi>λ<!-- λ --></mi>
<mo stretchy="false">(</mo>
<mi>i</mi>
<mo stretchy="false">)</mo>
<mo>=</mo>
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<mi>n</mi>
<mrow>
<mi>ln</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>n</mi>
</mrow>
</mfrac>
</mrow>
<msup>
<mi>e</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>B</mi>
<mo stretchy="false">(</mo>
<mn>1</mn>
<mo>+</mo>
<mi>o</mi>
<mo stretchy="false">(</mo>
<mn>1</mn>
<mo stretchy="false">)</mo>
<mo stretchy="false">)</mo>
<mi>ln</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>ln</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>n</mi>
<mrow class="MJX-TeXAtom-ORD">
<mo>/</mo>
</mrow>
<mo stretchy="false">(</mo>
<mi>ln</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>ln</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>ln</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>n</mi>
<mo stretchy="false">)</mo>
</mrow>
</msup>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle {\frac {1}{n}}\sum _{i\leq n}\lambda (i)={\frac {n}{\ln n}}e^{B(1+o(1))\ln \ln n/(\ln \ln \ln n)}}</annotation>
</semantics>
</math></span><img src="./978fdf6ffcb4b74988f74f3d15438bea0304d0d9.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -3.171ex; width:40.077ex; height:6.509ex;" alt="{\displaystyle {\frac {1}{n}}\sum _{i\leq n}\lambda (i)={\frac {n}{\ln n}}e^{B(1+o(1))\ln \ln n/(\ln \ln \ln n)}}" loading="lazy"></span></dd></dl>
<p>(called Erdős approximation in the following) with the constant
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle B:=e^{-\gamma }\prod _{p\in \mathbb {P} }\left({1-{\frac {1}{(p-1)^{2}(p+1)}}}\right)\approx 0.34537}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>B</mi>
<mo>:=</mo>
<msup>
<mi>e</mi>
<mrow class="MJX-TeXAtom-ORD">
<mo>−<!-- − --></mo>
<mi>γ<!-- γ --></mi>
</mrow>
</msup>
<munder>
<mo>∏<!-- ∏ --></mo>
<mrow class="MJX-TeXAtom-ORD">
<mi>p</mi>
<mo>∈<!-- ∈ --></mo>
<mrow class="MJX-TeXAtom-ORD">
<mi mathvariant="double-struck">P</mi>
</mrow>
</mrow>
</munder>
<mrow>
<mo>(</mo>
<mrow class="MJX-TeXAtom-ORD">
<mn>1</mn>
<mo>−<!-- − --></mo>
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<mn>1</mn>
<mrow>
<mo stretchy="false">(</mo>
<mi>p</mi>
<mo>−<!-- − --></mo>
<mn>1</mn>
<msup>
<mo stretchy="false">)</mo>
<mrow class="MJX-TeXAtom-ORD">
<mn>2</mn>
</mrow>
</msup>
<mo stretchy="false">(</mo>
<mi>p</mi>
<mo>+</mo>
<mn>1</mn>
<mo stretchy="false">)</mo>
</mrow>
</mfrac>
</mrow>
</mrow>
<mo>)</mo>
</mrow>
<mo>≈<!-- ≈ --></mo>
<mn>0.34537</mn>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle B:=e^{-\gamma }\prod _{p\in \mathbb {P} }\left({1-{\frac {1}{(p-1)^{2}(p+1)}}}\right)\approx 0.34537}</annotation>
</semantics>
</math></span><img src="./44b1d15761823a5fea5e3f4a63c2dd5a89c014a1.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -3.338ex; width:46.737ex; height:7.009ex;" alt="{\displaystyle B:=e^{-\gamma }\prod _{p\in \mathbb {P} }\left({1-{\frac {1}{(p-1)^{2}(p+1)}}}\right)\approx 0.34537}" loading="lazy"></span></dd></dl>
<p>and <span class="texhtml"> <i>γ</i> ≈ 0.57721</span>, the <a href="Euler%E2%80%93Mascheroni_constant" class="mw-redirect" title="Euler–Mascheroni constant">Euler–Mascheroni constant</a>.
</p><p>The following table gives some overview over the first <span class="texhtml">2<sup>26</sup> – 1 = <span class="nowrap">67<span style="margin-left:.25em;">108</span><span style="margin-left:.25em;">863</span></span></span> values of the <span class="texhtml mvar" style="font-style:italic;"> λ</span> function, for both, the exact average and its Erdős-approximation.
</p><p>Additionally given is some overview over the more easily accessible <span class="nowrap">“logarithm over logarithm” values</span> <span class="texhtml">LoL(<i>n</i>)&nbsp;:= <style data-mw-deduplicate="TemplateStyles:r1214402035">
/* start https://en.wikipedia.org/ */


.mw-parser-output .sfrac{white-space:nowrap}.mw-parser-output .sfrac.tion,.mw-parser-output .sfrac .tion{display:inline-block;vertical-align:-0.5em;font-size:85%;text-align:center}.mw-parser-output .sfrac .num{display:block;line-height:1em;margin:0.0em 0.1em;border-bottom:1px solid}.mw-parser-output .sfrac .den{display:block;line-height:1em;margin:0.1em 0.1em}.mw-parser-output .sr-only{border:0;clip:rect(0,0,0,0);clip-path:polygon(0px 0px,0px 0px,0px 0px);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}


/* end https://en.wikipedia.org/ */
</style><span class="sfrac">⁠<span class="tion"><span class="num">ln <i>λ</i>(<i>n</i>)</span><span class="sr-only">/</span><span class="den">ln <i>n</i></span></span>⁠</span></span> with
</p>
<ul><li><span class="texhtml"> LoL(<i>n</i>) &gt; <span class="sfrac">⁠<span class="tion"><span class="num">4</span><span class="sr-only">/</span><span class="den">5</span></span>⁠</span> ⇔ <i>λ</i>(<i>n</i>) &gt; <i>n</i><sup><span class="sfrac">⁠<span class="tion"><span class="num">4</span><span class="sr-only">/</span><span class="den">5</span></span>⁠</span></sup></span>.</li></ul>
<p>There, the table entry in row number 26 at column
</p>
<ul><li><span class="texhtml">&nbsp;% LoL &gt; <span class="sfrac">⁠<span class="tion"><span class="num">4</span><span class="sr-only">/</span><span class="den">5</span></span>⁠</span></span> <span style="padding-left:1em;">&nbsp;</span> → 60.49</li></ul>
<p>indicates that 60.49% (≈ <span class="nowrap">40<span style="margin-left:.25em;">000</span><span style="margin-left:.25em;">000</span></span>) of the integers <span class="texhtml"> 1 ≤ <i>n</i> ≤ <span class="nowrap">67<span style="margin-left:.25em;">108</span><span style="margin-left:.25em;">863</span></span></span> have <span class="texhtml"> <i>λ</i>(<i>n</i>) &gt; <i>n</i><sup><span class="sfrac">⁠<span class="tion"><span class="num">4</span><span class="sr-only">/</span><span class="den">5</span></span>⁠</span></sup></span> meaning that the majority of the <span class="texhtml mvar" style="font-style:italic;"> λ</span> values is exponential in the length <span class="texhtml"> <i>l</i>&nbsp;:= log<sub>2</sub>(<i>n</i>)</span> of the input <span class="texhtml mvar" style="font-style:italic;"> n</span>, namely
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \left(2^{\frac {4}{5}}\right)^{l}=2^{\frac {4l}{5}}=\left(2^{l}\right)^{\frac {4}{5}}=n^{\frac {4}{5}}.}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<msup>
<mrow>
<mo>(</mo>
<msup>
<mn>2</mn>
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<mn>4</mn>
<mn>5</mn>
</mfrac>
</mrow>
</msup>
<mo>)</mo>
</mrow>
<mrow class="MJX-TeXAtom-ORD">
<mi>l</mi>
</mrow>
</msup>
<mo>=</mo>
<msup>
<mn>2</mn>
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<mrow>
<mn>4</mn>
<mi>l</mi>
</mrow>
<mn>5</mn>
</mfrac>
</mrow>
</msup>
<mo>=</mo>
<msup>
<mrow>
<mo>(</mo>
<msup>
<mn>2</mn>
<mrow class="MJX-TeXAtom-ORD">
<mi>l</mi>
</mrow>
</msup>
<mo>)</mo>
</mrow>
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<mn>4</mn>
<mn>5</mn>
</mfrac>
</mrow>
</msup>
<mo>=</mo>
<msup>
<mi>n</mi>
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<mn>4</mn>
<mn>5</mn>
</mfrac>
</mrow>
</msup>
<mo>.</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \left(2^{\frac {4}{5}}\right)^{l}=2^{\frac {4l}{5}}=\left(2^{l}\right)^{\frac {4}{5}}=n^{\frac {4}{5}}.}</annotation>
</semantics>
</math></span><img src="./2263292ffc6e56ae950699aa05f06f93d98c9d70.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -2.505ex; width:29.161ex; height:6.676ex;" alt="{\displaystyle \left(2^{\frac {4}{5}}\right)^{l}=2^{\frac {4l}{5}}=\left(2^{l}\right)^{\frac {4}{5}}=n^{\frac {4}{5}}.}" loading="lazy"></span></dd></dl>
<dl><dd><table class="wikitable" style="text-align:right">

<tbody><tr style="vertical-align:top">
<th><span class="texhtml mvar" style="font-style:italic;"> ν</span></th>
<th><span class="texhtml"><i>n</i> = 2<sup><i>ν</i></sup> – 1</span></th>
<th>sum<br><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \sum _{i\leq n}\lambda (i)}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<munder>
<mo>∑<!-- ∑ --></mo>
<mrow class="MJX-TeXAtom-ORD">
<mi>i</mi>
<mo>≤<!-- ≤ --></mo>
<mi>n</mi>
</mrow>
</munder>
<mi>λ<!-- λ --></mi>
<mo stretchy="false">(</mo>
<mi>i</mi>
<mo stretchy="false">)</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \sum _{i\leq n}\lambda (i)}</annotation>
</semantics>
</math></span><img src="./89b1a5b1ad35c4394835b0cb6ef88afe2594903d.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -3.171ex; width:7.709ex; height:5.676ex;" alt="{\displaystyle \sum _{i\leq n}\lambda (i)}" loading="lazy"></span></th>
<th>average<br><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle {\tfrac {1}{n}}\sum _{i\leq n}\lambda (i)}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="false" scriptlevel="0">
<mfrac>
<mn>1</mn>
<mi>n</mi>
</mfrac>
</mstyle>
</mrow>
<munder>
<mo>∑<!-- ∑ --></mo>
<mrow class="MJX-TeXAtom-ORD">
<mi>i</mi>
<mo>≤<!-- ≤ --></mo>
<mi>n</mi>
</mrow>
</munder>
<mi>λ<!-- λ --></mi>
<mo stretchy="false">(</mo>
<mi>i</mi>
<mo stretchy="false">)</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle {\tfrac {1}{n}}\sum _{i\leq n}\lambda (i)}</annotation>
</semantics>
</math></span><img src="./8976a46d0f45aa901d7cb4eaff88667cbc620518.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -3.171ex; width:9.919ex; height:5.676ex;" alt="{\displaystyle {\tfrac {1}{n}}\sum _{i\leq n}\lambda (i)}" loading="lazy"></span></th>
<th>Erdős average</th>
<th>Erdős /<br>exact average</th>
<th><span class="texhtml"> LoL</span> average</th>
<th>% <span class="texhtml"> LoL</span> &gt; <span class="sfrac">⁠<span class="tion"><span class="num">4</span><span class="sr-only">/</span><span class="den">5</span></span>⁠</span></th>
<th>% <span class="texhtml"> LoL</span> &gt; <span class="sfrac">⁠<span class="tion"><span class="num">7</span><span class="sr-only">/</span><span class="den">8</span></span>⁠</span>
</th></tr>
<tr>
<td>5</td>
<td>31</td>
<td>270</td>
<td>8.709677</td>
<td>68.643</td>
<td>7.8813</td>
<td>0.678244</td>
<td>41.94</td>
<td>35.48
</td></tr>
<tr>
<td>6</td>
<td>63</td>
<td>964</td>
<td>15.301587</td>
<td>61.414</td>
<td>4.0136</td>
<td>0.699891</td>
<td>38.10</td>
<td>30.16
</td></tr>
<tr>
<td>7</td>
<td>127</td>
<td>3574</td>
<td>28.141732</td>
<td>86.605</td>
<td>3.0774</td>
<td>0.717291</td>
<td>38.58</td>
<td>27.56
</td></tr>
<tr>
<td>8</td>
<td>255</td>
<td>12994</td>
<td>50.956863</td>
<td>138.190</td>
<td>2.7119</td>
<td>0.730331</td>
<td>38.82</td>
<td>23.53
</td></tr>
<tr>
<td>9</td>
<td>511</td>
<td>48032</td>
<td>93.996086</td>
<td>233.149</td>
<td>2.4804</td>
<td>0.740498</td>
<td>40.90</td>
<td>25.05
</td></tr>
<tr>
<td>10</td>
<td>1023</td>
<td>178816</td>
<td>174.795699</td>
<td>406.145</td>
<td>2.3235</td>
<td>0.748482</td>
<td>41.45</td>
<td>26.98
</td></tr>
<tr>
<td>11</td>
<td>2047</td>
<td>662952</td>
<td>323.865169</td>
<td>722.526</td>
<td>2.2309</td>
<td>0.754886</td>
<td>42.84</td>
<td>27.70
</td></tr>
<tr>
<td>12</td>
<td>4095</td>
<td>2490948</td>
<td>608.290110</td>
<td>1304.810</td>
<td>2.1450</td>
<td>0.761027</td>
<td>43.74</td>
<td>28.11
</td></tr>
<tr>
<td>13</td>
<td>8191</td>
<td>9382764</td>
<td>1145.496765</td>
<td>2383.263</td>
<td>2.0806</td>
<td>0.766571</td>
<td>44.33</td>
<td>28.60
</td></tr>
<tr>
<td>14</td>
<td>16383</td>
<td>35504586</td>
<td>2167.160227</td>
<td>4392.129</td>
<td>2.0267</td>
<td>0.771695</td>
<td>46.10</td>
<td>29.52
</td></tr>
<tr>
<td>15</td>
<td>32767</td>
<td>134736824</td>
<td>4111.967040</td>
<td>8153.054</td>
<td>1.9828</td>
<td>0.776437</td>
<td>47.21</td>
<td>29.15
</td></tr>
<tr>
<td>16</td>
<td>65535</td>
<td>513758796</td>
<td>7839.456718</td>
<td>15225.43<span aria-hidden="true" style="visibility:hidden;color:transparent;">0</span></td>
<td>1.9422</td>
<td>0.781064</td>
<td>49.13</td>
<td>28.17
</td></tr>
<tr>
<td>17</td>
<td>131071</td>
<td>1964413592</td>
<td>14987.40066<span aria-hidden="true" style="visibility:hidden;color:transparent;">0</span></td>
<td>28576.97<span aria-hidden="true" style="visibility:hidden;color:transparent;">0</span></td>
<td>1.9067</td>
<td>0.785401</td>
<td>50.43</td>
<td>29.55
</td></tr>
<tr>
<td>18</td>
<td>262143</td>
<td>7529218208</td>
<td>28721.79768<span aria-hidden="true" style="visibility:hidden;color:transparent;">0</span></td>
<td>53869.76<span aria-hidden="true" style="visibility:hidden;color:transparent;">0</span></td>
<td>1.8756</td>
<td>0.789561</td>
<td>51.17</td>
<td>30.67
</td></tr>
<tr>
<td>19</td>
<td>524287</td>
<td>28935644342</td>
<td>55190.46694<span aria-hidden="true" style="visibility:hidden;color:transparent;">0</span></td>
<td>101930.9<span aria-hidden="true" style="visibility:hidden;color:transparent;">00</span></td>
<td>1.8469</td>
<td>0.793536</td>
<td>52.62</td>
<td>31.45
</td></tr>
<tr>
<td>20</td>
<td>1048575</td>
<td>111393101150</td>
<td>106232.8409<span aria-hidden="true" style="visibility:hidden;color:transparent;">00</span></td>
<td>193507.1<span aria-hidden="true" style="visibility:hidden;color:transparent;">00</span></td>
<td>1.8215</td>
<td>0.797351</td>
<td>53.74</td>
<td>31.83
</td></tr>
<tr>
<td>21</td>
<td>2097151</td>
<td>429685077652</td>
<td>204889.9090<span aria-hidden="true" style="visibility:hidden;color:transparent;">00</span></td>
<td>368427.6<span aria-hidden="true" style="visibility:hidden;color:transparent;">00</span></td>
<td>1.7982</td>
<td>0.801018</td>
<td>54.97</td>
<td>32.18
</td></tr>
<tr>
<td>22</td>
<td>4194303</td>
<td>1660388309120</td>
<td>395867.5158<span aria-hidden="true" style="visibility:hidden;color:transparent;">00</span></td>
<td>703289.4<span aria-hidden="true" style="visibility:hidden;color:transparent;">00</span></td>
<td>1.7766</td>
<td>0.804543</td>
<td>56.24</td>
<td>33.65
</td></tr>
<tr>
<td>23</td>
<td>8388607</td>
<td>6425917227352</td>
<td>766029.1187<span aria-hidden="true" style="visibility:hidden;color:transparent;">00</span></td>
<td>1345633<span aria-hidden="true" style="visibility:hidden;color:transparent;">.000</span></td>
<td>1.7566</td>
<td>0.807936</td>
<td>57.19</td>
<td>34.32
</td></tr>
<tr>
<td>24</td>
<td>16777215</td>
<td>24906872655990</td>
<td>1484565.386<span aria-hidden="true" style="visibility:hidden;color:transparent;">000</span></td>
<td>2580070<span aria-hidden="true" style="visibility:hidden;color:transparent;">.000</span></td>
<td>1.7379</td>
<td>0.811204</td>
<td>58.49</td>
<td>34.43
</td></tr>
<tr>
<td>25</td>
<td>33554431</td>
<td>96666595865430</td>
<td>2880889.140<span aria-hidden="true" style="visibility:hidden;color:transparent;">000</span></td>
<td>4956372<span aria-hidden="true" style="visibility:hidden;color:transparent;">.000</span></td>
<td>1.7204</td>
<td>0.814351</td>
<td>59.52</td>
<td>35.76
</td></tr>
<tr>
<td>26</td>
<td>67108863</td>
<td>375619048086576</td>
<td>5597160.066<span aria-hidden="true" style="visibility:hidden;color:transparent;">000</span></td>
<td>9537863<span aria-hidden="true" style="visibility:hidden;color:transparent;">.000</span></td>
<td>1.7041</td>
<td>0.817384</td>
<td>60.49</td>
<td>36.73
</td></tr></tbody></table></dd></dl>
<div class="mw-heading mw-heading3"><h3 id="Prevailing_interval">Prevailing interval</h3></div>
<p>For all numbers <span class="texhtml mvar" style="font-style:italic;"> N</span> and all but <span class="texhtml"> <i>o</i>(<i>N</i>)</span><sup id="cite_ref-8" class="reference"><a href="#cite_note-8"><span class="cite-bracket">[</span>8<span class="cite-bracket">]</span></a></sup> positive integers <span class="texhtml"> <i>n</i> ≤ <i>N</i></span> (a "prevailing" majority):
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \lambda (n)={\frac {n}{(\ln n)^{\ln \ln \ln n+A+o(1)}}}}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>λ<!-- λ --></mi>
<mo stretchy="false">(</mo>
<mi>n</mi>
<mo stretchy="false">)</mo>
<mo>=</mo>
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<mi>n</mi>
<mrow>
<mo stretchy="false">(</mo>
<mi>ln</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>n</mi>
<msup>
<mo stretchy="false">)</mo>
<mrow class="MJX-TeXAtom-ORD">
<mi>ln</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>ln</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>ln</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>n</mi>
<mo>+</mo>
<mi>A</mi>
<mo>+</mo>
<mi>o</mi>
<mo stretchy="false">(</mo>
<mn>1</mn>
<mo stretchy="false">)</mo>
</mrow>
</msup>
</mrow>
</mfrac>
</mrow>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \lambda (n)={\frac {n}{(\ln n)^{\ln \ln \ln n+A+o(1)}}}}</annotation>
</semantics>
</math></span><img src="./91268eb20942e09421cb5ee919ee12eaab785b44.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -2.838ex; width:27.206ex; height:5.676ex;" alt="{\displaystyle \lambda (n)={\frac {n}{(\ln n)^{\ln \ln \ln n+A+o(1)}}}}" loading="lazy"></span></dd></dl>
<p>with the constant<sup id="cite_ref-HBII194_7-1" class="reference"><a href="#cite_note-HBII194-7"><span class="cite-bracket">[</span>7<span class="cite-bracket">]</span></a></sup>
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle A:=-1+\sum _{p\in \mathbb {P} }{\frac {\ln p}{(p-1)^{2}}}\approx 0.2269688}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>A</mi>
<mo>:=</mo>
<mo>−<!-- − --></mo>
<mn>1</mn>
<mo>+</mo>
<munder>
<mo>∑<!-- ∑ --></mo>
<mrow class="MJX-TeXAtom-ORD">
<mi>p</mi>
<mo>∈<!-- ∈ --></mo>
<mrow class="MJX-TeXAtom-ORD">
<mi mathvariant="double-struck">P</mi>
</mrow>
</mrow>
</munder>
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<mrow>
<mi>ln</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>p</mi>
</mrow>
<mrow>
<mo stretchy="false">(</mo>
<mi>p</mi>
<mo>−<!-- − --></mo>
<mn>1</mn>
<msup>
<mo stretchy="false">)</mo>
<mrow class="MJX-TeXAtom-ORD">
<mn>2</mn>
</mrow>
</msup>
</mrow>
</mfrac>
</mrow>
<mo>≈<!-- ≈ --></mo>
<mn>0.2269688</mn>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle A:=-1+\sum _{p\in \mathbb {P} }{\frac {\ln p}{(p-1)^{2}}}\approx 0.2269688}</annotation>
</semantics>
</math></span><img src="./3ed0a5fe9830d69d7dd117ca86c2b4a646ce9f33.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -3.338ex; width:36.958ex; height:6.843ex;" alt="{\displaystyle A:=-1+\sum _{p\in \mathbb {P} }{\frac {\ln p}{(p-1)^{2}}}\approx 0.2269688}" loading="lazy"></span></dd></dl>
<div class="mw-heading mw-heading3"><h3 id="Lower_bounds">Lower bounds</h3></div>
<p>For any sufficiently large number <span class="texhtml mvar" style="font-style:italic;"> N</span> and for any <span class="texhtml"> Δ ≥ (ln ln <i>N</i>)<sup>3</sup></span>, there are at most
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle N\exp \left(-0.69(\Delta \ln \Delta )^{\frac {1}{3}}\right)}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>N</mi>
<mi>exp</mi>
<mo>⁡<!-- ⁡ --></mo>
<mrow>
<mo>(</mo>
<mrow>
<mo>−<!-- − --></mo>
<mn>0.69</mn>
<mo stretchy="false">(</mo>
<mi mathvariant="normal">Δ<!-- Δ --></mi>
<mi>ln</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi mathvariant="normal">Δ<!-- Δ --></mi>
<msup>
<mo stretchy="false">)</mo>
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<mn>1</mn>
<mn>3</mn>
</mfrac>
</mrow>
</msup>
</mrow>
<mo>)</mo>
</mrow>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle N\exp \left(-0.69(\Delta \ln \Delta )^{\frac {1}{3}}\right)}</annotation>
</semantics>
</math></span><img src="./98b2a51e00effb08a01362cf15844d9b73915092.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -2.505ex; width:25.497ex; height:6.176ex;" alt="{\displaystyle N\exp \left(-0.69(\Delta \ln \Delta )^{\frac {1}{3}}\right)}" loading="lazy"></span></dd></dl>
<p>positive integers <span class="texhtml"> <i>n</i> ≤ N</span> such that <span class="texhtml"> <i>λ</i>(<i>n</i>) ≤ <i>ne</i><sup>−Δ</sup></span>.<sup id="cite_ref-9" class="reference"><a href="#cite_note-9"><span class="cite-bracket">[</span>9<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading3"><h3 id="Minimal_order">Minimal order</h3></div>
<p>For any sequence <span class="texhtml"> <i>n</i><sub>1</sub> &lt; <i>n</i><sub>2</sub> &lt; <i>n</i><sub>3</sub> &lt; ⋯</span> of positive integers, any constant <span class="texhtml"> 0 &lt; <i>c</i> &lt; <span class="sfrac">⁠<span class="tion"><span class="num">1</span><span class="sr-only">/</span><span class="den">ln 2</span></span>⁠</span></span>, and any sufficiently large <span class="texhtml mvar" style="font-style:italic;"> i</span>:<sup id="cite_ref-Theorem_1_in_Erdős_(1991)_10-0" class="reference"><a href="#cite_note-Theorem_1_in_Erdős_(1991)-10"><span class="cite-bracket">[</span>10<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-HBII193_11-0" class="reference"><a href="#cite_note-HBII193-11"><span class="cite-bracket">[</span>11<span class="cite-bracket">]</span></a></sup>
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \lambda (n_{i})>\left(\ln n_{i}\right)^{c\ln \ln \ln n_{i}}.}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>λ<!-- λ --></mi>
<mo stretchy="false">(</mo>
<msub>
<mi>n</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>i</mi>
</mrow>
</msub>
<mo stretchy="false">)</mo>
<mo>&gt;</mo>
<msup>
<mrow>
<mo>(</mo>
<mrow>
<mi>ln</mi>
<mo>⁡<!-- ⁡ --></mo>
<msub>
<mi>n</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>i</mi>
</mrow>
</msub>
</mrow>
<mo>)</mo>
</mrow>
<mrow class="MJX-TeXAtom-ORD">
<mi>c</mi>
<mi>ln</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>ln</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>ln</mi>
<mo>⁡<!-- ⁡ --></mo>
<msub>
<mi>n</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>i</mi>
</mrow>
</msub>
</mrow>
</msup>
<mo>.</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \lambda (n_{i})&gt;\left(\ln n_{i}\right)^{c\ln \ln \ln n_{i}}.}</annotation>
</semantics>
</math></span><img src="./a144710ef62f61eff3056f1ce818d0b1bbd90cb2.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:23.652ex; height:3.343ex;" alt="{\displaystyle \lambda (n_{i})>\left(\ln n_{i}\right)^{c\ln \ln \ln n_{i}}.}" loading="lazy"></span></dd></dl>
<div class="mw-heading mw-heading3"><h3 id="Small_values">Small values</h3></div>
<p>For a constant <span class="texhtml mvar" style="font-style:italic;"> c</span> and any sufficiently large positive <span class="texhtml mvar" style="font-style:italic;"> A</span>, there exists an integer <span class="texhtml"> <i>n</i> &gt; <i>A</i></span> such that<sup id="cite_ref-HBII193_11-1" class="reference"><a href="#cite_note-HBII193-11"><span class="cite-bracket">[</span>11<span class="cite-bracket">]</span></a></sup>
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \lambda (n)<\left(\ln A\right)^{c\ln \ln \ln A}.}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>λ<!-- λ --></mi>
<mo stretchy="false">(</mo>
<mi>n</mi>
<mo stretchy="false">)</mo>
<mo>&lt;</mo>
<msup>
<mrow>
<mo>(</mo>
<mrow>
<mi>ln</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>A</mi>
</mrow>
<mo>)</mo>
</mrow>
<mrow class="MJX-TeXAtom-ORD">
<mi>c</mi>
<mi>ln</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>ln</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>ln</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>A</mi>
</mrow>
</msup>
<mo>.</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \lambda (n)&lt;\left(\ln A\right)^{c\ln \ln \ln A}.}</annotation>
</semantics>
</math></span><img src="./f6d97f7da496c4eb01000532f578bd837d225b2c.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:22.023ex; height:3.343ex;" alt="{\displaystyle \lambda (n)<\left(\ln A\right)^{c\ln \ln \ln A}.}" loading="lazy"></span></dd></dl>
<p>Moreover, <span class="texhtml mvar" style="font-style:italic;"> n</span> is of the form
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle n=\mathop {\prod _{q\in \mathbb {P} }} _{(q-1)|m}q}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>n</mi>
<mo>=</mo>
<munder>
<mrow class="MJX-TeXAtom-OP">
<munder>
<mo>∏<!-- ∏ --></mo>
<mrow class="MJX-TeXAtom-ORD">
<mi>q</mi>
<mo>∈<!-- ∈ --></mo>
<mrow class="MJX-TeXAtom-ORD">
<mi mathvariant="double-struck">P</mi>
</mrow>
</mrow>
</munder>
</mrow>
<mrow class="MJX-TeXAtom-ORD">
<mo stretchy="false">(</mo>
<mi>q</mi>
<mo>−<!-- − --></mo>
<mn>1</mn>
<mo stretchy="false">)</mo>
<mrow class="MJX-TeXAtom-ORD">
<mo stretchy="false">|</mo>
</mrow>
<mi>m</mi>
</mrow>
</munder>
<mo>⁡<!-- ⁡ --></mo>
<mi>q</mi>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle n=\mathop {\prod _{q\in \mathbb {P} }} _{(q-1)|m}q}</annotation>
</semantics>
</math></span><img src="./939d7257aa91af9a9cb572c1c708fd953411d211.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -5.671ex; width:11.986ex; height:8.176ex;" alt="{\displaystyle n=\mathop {\prod _{q\in \mathbb {P} }} _{(q-1)|m}q}" loading="lazy"></span></dd></dl>
<p>for some square-free integer <span class="texhtml"> <i>m</i> &lt; (ln <i>A</i>)<sup><i>c</i> ln ln ln <i>A</i></sup></span>.<sup id="cite_ref-Theorem_1_in_Erdős_(1991)_10-1" class="reference"><a href="#cite_note-Theorem_1_in_Erdős_(1991)-10"><span class="cite-bracket">[</span>10<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading3"><h3 id="Image_of_the_function">Image of the function</h3></div>
<p>The set of values of the Carmichael function has counting function<sup id="cite_ref-12" class="reference"><a href="#cite_note-12"><span class="cite-bracket">[</span>12<span class="cite-bracket">]</span></a></sup>
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle {\frac {x}{(\ln x)^{\eta +o(1)}}},}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<mi>x</mi>
<mrow>
<mo stretchy="false">(</mo>
<mi>ln</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>x</mi>
<msup>
<mo stretchy="false">)</mo>
<mrow class="MJX-TeXAtom-ORD">
<mi>η<!-- η --></mi>
<mo>+</mo>
<mi>o</mi>
<mo stretchy="false">(</mo>
<mn>1</mn>
<mo stretchy="false">)</mo>
</mrow>
</msup>
</mrow>
</mfrac>
</mrow>
<mo>,</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle {\frac {x}{(\ln x)^{\eta +o(1)}}},}</annotation>
</semantics>
</math></span><img src="./4ef2e928429f111c920be5cb5322b37be124686d.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -2.838ex; width:12.185ex; height:5.676ex;" alt="{\displaystyle {\frac {x}{(\ln x)^{\eta +o(1)}}},}" loading="lazy"></span></dd></dl>
<p>where
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \eta =1-{\frac {1+\ln \ln 2}{\ln 2}}\approx 0.08607}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>η<!-- η --></mi>
<mo>=</mo>
<mn>1</mn>
<mo>−<!-- − --></mo>
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<mrow>
<mn>1</mn>
<mo>+</mo>
<mi>ln</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>ln</mi>
<mo>⁡<!-- ⁡ --></mo>
<mn>2</mn>
</mrow>
<mrow>
<mi>ln</mi>
<mo>⁡<!-- ⁡ --></mo>
<mn>2</mn>
</mrow>
</mfrac>
</mrow>
<mo>≈<!-- ≈ --></mo>
<mn>0.08607</mn>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \eta =1-{\frac {1+\ln \ln 2}{\ln 2}}\approx 0.08607}</annotation>
</semantics>
</math></span><img src="./40abee8e1550e7653459660d55c3a9f5f288a3f6.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -1.838ex; width:29.645ex; height:5.343ex;" alt="{\displaystyle \eta =1-{\frac {1+\ln \ln 2}{\ln 2}}\approx 0.08607}" loading="lazy"></span></dd></dl>
<div class="mw-heading mw-heading2"><h2 id="Use_in_cryptography">Use in cryptography</h2></div>
<p>The Carmichael function is important in <a href="Cryptography" title="Cryptography">cryptography</a> due to its use in the <a href="RSA_(cryptosystem)" class="mw-redirect" title="RSA (cryptosystem)">RSA encryption algorithm</a>.
</p>
<div class="mw-heading mw-heading2"><h2 id="Proof_of_Theorem_1">Proof of Theorem 1</h2></div>
<p>For <span class="texhtml"> <i>n</i> = <i>p</i></span>, a prime, Theorem 1 is equivalent to <a href="Fermat's_little_theorem" title="Fermat's little theorem">Fermat's little theorem</a>:
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle a^{p-1}\equiv 1{\pmod {p}}\qquad {\text{for all }}a{\text{ coprime to }}p.}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<msup>
<mi>a</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>p</mi>
<mo>−<!-- − --></mo>
<mn>1</mn>
</mrow>
</msup>
<mo>≡<!-- ≡ --></mo>
<mn>1</mn>
<mrow class="MJX-TeXAtom-ORD">
<mspace width="1em"></mspace>
<mo stretchy="false">(</mo>
<mi>mod</mi>
<mspace width="0.333em"></mspace>
<mi>p</mi>
<mo stretchy="false">)</mo>
</mrow>
<mspace width="2em"></mspace>
<mrow class="MJX-TeXAtom-ORD">
<mtext>for all&nbsp;</mtext>
</mrow>
<mi>a</mi>
<mrow class="MJX-TeXAtom-ORD">
<mtext>&nbsp;coprime to&nbsp;</mtext>
</mrow>
<mi>p</mi>
<mo>.</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle a^{p-1}\equiv 1{\pmod {p}}\qquad {\text{for all }}a{\text{ coprime to }}p.}</annotation>
</semantics>
</math></span><img src="./5750f0b1972a8112485fde8b9a84dba4772e4ec9.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:45.422ex; height:3.176ex;" alt="{\displaystyle a^{p-1}\equiv 1{\pmod {p}}\qquad {\text{for all }}a{\text{ coprime to }}p.}" loading="lazy"></span></dd></dl>
<p>For prime powers <span class="texhtml"> <i>p</i><sup><i>r</i></sup></span>, <span class="texhtml"> <i>r</i> &gt; 1</span>, if
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle a^{p^{r-1}(p-1)}=1+hp^{r}}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<msup>
<mi>a</mi>
<mrow class="MJX-TeXAtom-ORD">
<msup>
<mi>p</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>r</mi>
<mo>−<!-- − --></mo>
<mn>1</mn>
</mrow>
</msup>
<mo stretchy="false">(</mo>
<mi>p</mi>
<mo>−<!-- − --></mo>
<mn>1</mn>
<mo stretchy="false">)</mo>
</mrow>
</msup>
<mo>=</mo>
<mn>1</mn>
<mo>+</mo>
<mi>h</mi>
<msup>
<mi>p</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>r</mi>
</mrow>
</msup>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle a^{p^{r-1}(p-1)}=1+hp^{r}}</annotation>
</semantics>
</math></span><img src="./9bfbfa3f96545ef4f5eabab73d670eb00e822a2f.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.671ex; width:19.551ex; height:3.343ex;" alt="{\displaystyle a^{p^{r-1}(p-1)}=1+hp^{r}}" loading="lazy"></span></dd></dl>
<p>holds for some integer <span class="texhtml mvar" style="font-style:italic;"> h</span>, then raising both sides to the power <span class="texhtml mvar" style="font-style:italic;"> p</span> gives
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle a^{p^{r}(p-1)}=1+h'p^{r+1}}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<msup>
<mi>a</mi>
<mrow class="MJX-TeXAtom-ORD">
<msup>
<mi>p</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>r</mi>
</mrow>
</msup>
<mo stretchy="false">(</mo>
<mi>p</mi>
<mo>−<!-- − --></mo>
<mn>1</mn>
<mo stretchy="false">)</mo>
</mrow>
</msup>
<mo>=</mo>
<mn>1</mn>
<mo>+</mo>
<msup>
<mi>h</mi>
<mo>′</mo>
</msup>
<msup>
<mi>p</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>r</mi>
<mo>+</mo>
<mn>1</mn>
</mrow>
</msup>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle a^{p^{r}(p-1)}=1+h'p^{r+1}}</annotation>
</semantics>
</math></span><img src="./5428c7674e01684040cdb2d64baba27d74725ca1.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.671ex; width:20.631ex; height:3.176ex;" alt="{\displaystyle a^{p^{r}(p-1)}=1+h'p^{r+1}}" loading="lazy"></span></dd></dl>
<p>for some other integer <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle h'}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<msup>
<mi>h</mi>
<mo>′</mo>
</msup>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle h'}</annotation>
</semantics>
</math></span><img src="./6b9dea8e11793a3d64d2be5b4a15f479363e063c.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:2.024ex; height:2.509ex;" alt="{\displaystyle h'}" loading="lazy"></span>. By induction it follows that <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle a^{\varphi (p^{r})}\equiv 1{\pmod {p^{r}}}}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<msup>
<mi>a</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>φ<!-- φ --></mi>
<mo stretchy="false">(</mo>
<msup>
<mi>p</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>r</mi>
</mrow>
</msup>
<mo stretchy="false">)</mo>
</mrow>
</msup>
<mo>≡<!-- ≡ --></mo>
<mn>1</mn>
<mrow class="MJX-TeXAtom-ORD">
<mspace width="1em"></mspace>
<mo stretchy="false">(</mo>
<mi>mod</mi>
<mspace width="0.333em"></mspace>
<msup>
<mi>p</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>r</mi>
</mrow>
</msup>
<mo stretchy="false">)</mo>
</mrow>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle a^{\varphi (p^{r})}\equiv 1{\pmod {p^{r}}}}</annotation>
</semantics>
</math></span><img src="./6c23aeb25cc2ed70a2d4195559e3ac2f2ded2e39.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:21.498ex; height:3.343ex;" alt="{\displaystyle a^{\varphi (p^{r})}\equiv 1{\pmod {p^{r}}}}" loading="lazy"></span> for all <span class="texhtml mvar" style="font-style:italic;"> a</span> relatively prime to <span class="texhtml mvar" style="font-style:italic;"> p</span> and hence to <span class="texhtml"> <i>p</i><sup><i>r</i></sup></span>. This establishes the theorem for <span class="texhtml"> <i>n</i> = 4</span> or any odd prime power.
</p>
<div class="mw-heading mw-heading3"><h3 id="Sharpening_the_result_for_higher_powers_of_two">Sharpening the result for higher powers of two</h3></div>
<p>For <span class="texhtml mvar" style="font-style:italic;"> a</span> coprime to (powers of) 2 we have <span class="texhtml"> <i>a</i> = 1 + 2<i>h</i><sub>2</sub></span> for some integer <span class="texhtml"> <i>h</i><sub>2</sub></span>. Then,
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle a^{2}=1+4h_{2}(h_{2}+1)=1+8{\binom {h_{2}+1}{2}}=:1+8h_{3}}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<msup>
<mi>a</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>2</mn>
</mrow>
</msup>
<mo>=</mo>
<mn>1</mn>
<mo>+</mo>
<mn>4</mn>
<msub>
<mi>h</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>2</mn>
</mrow>
</msub>
<mo stretchy="false">(</mo>
<msub>
<mi>h</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>2</mn>
</mrow>
</msub>
<mo>+</mo>
<mn>1</mn>
<mo stretchy="false">)</mo>
<mo>=</mo>
<mn>1</mn>
<mo>+</mo>
<mn>8</mn>
<mrow class="MJX-TeXAtom-ORD">
<mrow>
<mrow class="MJX-TeXAtom-OPEN">
<mo maxsize="2.047em" minsize="2.047em">(</mo>
</mrow>
<mfrac linethickness="0">
<mrow>
<msub>
<mi>h</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>2</mn>
</mrow>
</msub>
<mo>+</mo>
<mn>1</mn>
</mrow>
<mn>2</mn>
</mfrac>
<mrow class="MJX-TeXAtom-CLOSE">
<mo maxsize="2.047em" minsize="2.047em">)</mo>
</mrow>
</mrow>
</mrow>
<mo>=:</mo>
<mn>1</mn>
<mo>+</mo>
<mn>8</mn>
<msub>
<mi>h</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>3</mn>
</mrow>
</msub>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle a^{2}=1+4h_{2}(h_{2}+1)=1+8{\binom {h_{2}+1}{2}}=:1+8h_{3}}</annotation>
</semantics>
</math></span><img src="./02b86b199d755fd6e4a715f56a51555daae3fe74.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -2.505ex; width:50.531ex; height:6.176ex;" alt="{\displaystyle a^{2}=1+4h_{2}(h_{2}+1)=1+8{\binom {h_{2}+1}{2}}=:1+8h_{3}}" loading="lazy"></span>,</dd></dl>
<p>where <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle h_{3}}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<msub>
<mi>h</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>3</mn>
</mrow>
</msub>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle h_{3}}</annotation>
</semantics>
</math></span><img src="./e9b7b4e24b0477e3270e7c640a73be1a8dc7f300.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.671ex; width:2.393ex; height:2.509ex;" alt="{\displaystyle h_{3}}" loading="lazy"></span> is an integer. With <span class="texhtml"><i>r</i> = 3</span>, this is written
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle a^{2^{r-2}}=1+2^{r}h_{r}.}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<msup>
<mi>a</mi>
<mrow class="MJX-TeXAtom-ORD">
<msup>
<mn>2</mn>
<mrow class="MJX-TeXAtom-ORD">
<mi>r</mi>
<mo>−<!-- − --></mo>
<mn>2</mn>
</mrow>
</msup>
</mrow>
</msup>
<mo>=</mo>
<mn>1</mn>
<mo>+</mo>
<msup>
<mn>2</mn>
<mrow class="MJX-TeXAtom-ORD">
<mi>r</mi>
</mrow>
</msup>
<msub>
<mi>h</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>r</mi>
</mrow>
</msub>
<mo>.</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle a^{2^{r-2}}=1+2^{r}h_{r}.}</annotation>
</semantics>
</math></span><img src="./9ffa57f4c21b2ef7fe9da5aac53c3445b8628bd5.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.671ex; width:16.953ex; height:3.343ex;" alt="{\displaystyle a^{2^{r-2}}=1+2^{r}h_{r}.}" loading="lazy"></span></dd></dl>
<p>Squaring both sides gives
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle a^{2^{r-1}}=\left(1+2^{r}h_{r}\right)^{2}=1+2^{r+1}\left(h_{r}+2^{r-1}h_{r}^{2}\right)=:1+2^{r+1}h_{r+1},}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<msup>
<mi>a</mi>
<mrow class="MJX-TeXAtom-ORD">
<msup>
<mn>2</mn>
<mrow class="MJX-TeXAtom-ORD">
<mi>r</mi>
<mo>−<!-- − --></mo>
<mn>1</mn>
</mrow>
</msup>
</mrow>
</msup>
<mo>=</mo>
<msup>
<mrow>
<mo>(</mo>
<mrow>
<mn>1</mn>
<mo>+</mo>
<msup>
<mn>2</mn>
<mrow class="MJX-TeXAtom-ORD">
<mi>r</mi>
</mrow>
</msup>
<msub>
<mi>h</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>r</mi>
</mrow>
</msub>
</mrow>
<mo>)</mo>
</mrow>
<mrow class="MJX-TeXAtom-ORD">
<mn>2</mn>
</mrow>
</msup>
<mo>=</mo>
<mn>1</mn>
<mo>+</mo>
<msup>
<mn>2</mn>
<mrow class="MJX-TeXAtom-ORD">
<mi>r</mi>
<mo>+</mo>
<mn>1</mn>
</mrow>
</msup>
<mrow>
<mo>(</mo>
<mrow>
<msub>
<mi>h</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>r</mi>
</mrow>
</msub>
<mo>+</mo>
<msup>
<mn>2</mn>
<mrow class="MJX-TeXAtom-ORD">
<mi>r</mi>
<mo>−<!-- − --></mo>
<mn>1</mn>
</mrow>
</msup>
<msubsup>
<mi>h</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>r</mi>
</mrow>
<mrow class="MJX-TeXAtom-ORD">
<mn>2</mn>
</mrow>
</msubsup>
</mrow>
<mo>)</mo>
</mrow>
<mo>=:</mo>
<mn>1</mn>
<mo>+</mo>
<msup>
<mn>2</mn>
<mrow class="MJX-TeXAtom-ORD">
<mi>r</mi>
<mo>+</mo>
<mn>1</mn>
</mrow>
</msup>
<msub>
<mi>h</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>r</mi>
<mo>+</mo>
<mn>1</mn>
</mrow>
</msub>
<mo>,</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle a^{2^{r-1}}=\left(1+2^{r}h_{r}\right)^{2}=1+2^{r+1}\left(h_{r}+2^{r-1}h_{r}^{2}\right)=:1+2^{r+1}h_{r+1},}</annotation>
</semantics>
</math></span><img src="./6f75f71f30cda75cba02969e915472e02730da9d.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -1.005ex; width:61.853ex; height:3.676ex;" alt="{\displaystyle a^{2^{r-1}}=\left(1+2^{r}h_{r}\right)^{2}=1+2^{r+1}\left(h_{r}+2^{r-1}h_{r}^{2}\right)=:1+2^{r+1}h_{r+1},}" loading="lazy"></span></dd></dl>
<p>where <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle h_{r+1}}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<msub>
<mi>h</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>r</mi>
<mo>+</mo>
<mn>1</mn>
</mrow>
</msub>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle h_{r+1}}</annotation>
</semantics>
</math></span><img src="./67859e1ec8bd8efa924407dcab6ffa3e01a0454e.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.671ex; width:4.413ex; height:2.509ex;" alt="{\displaystyle h_{r+1}}" loading="lazy"></span> is an integer. It follows by induction that
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle a^{2^{r-2}}=a^{{\frac {1}{2}}\varphi (2^{r})}\equiv 1{\pmod {2^{r}}}}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<msup>
<mi>a</mi>
<mrow class="MJX-TeXAtom-ORD">
<msup>
<mn>2</mn>
<mrow class="MJX-TeXAtom-ORD">
<mi>r</mi>
<mo>−<!-- − --></mo>
<mn>2</mn>
</mrow>
</msup>
</mrow>
</msup>
<mo>=</mo>
<msup>
<mi>a</mi>
<mrow class="MJX-TeXAtom-ORD">
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<mn>1</mn>
<mn>2</mn>
</mfrac>
</mrow>
<mi>φ<!-- φ --></mi>
<mo stretchy="false">(</mo>
<msup>
<mn>2</mn>
<mrow class="MJX-TeXAtom-ORD">
<mi>r</mi>
</mrow>
</msup>
<mo stretchy="false">)</mo>
</mrow>
</msup>
<mo>≡<!-- ≡ --></mo>
<mn>1</mn>
<mrow class="MJX-TeXAtom-ORD">
<mspace width="1em"></mspace>
<mo stretchy="false">(</mo>
<mi>mod</mi>
<mspace width="0.333em"></mspace>
<msup>
<mn>2</mn>
<mrow class="MJX-TeXAtom-ORD">
<mi>r</mi>
</mrow>
</msup>
<mo stretchy="false">)</mo>
</mrow>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle a^{2^{r-2}}=a^{{\frac {1}{2}}\varphi (2^{r})}\equiv 1{\pmod {2^{r}}}}</annotation>
</semantics>
</math></span><img src="./e9bf82c2beed53c3ec8247796c0624939e3d5772.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:30.843ex; height:4.009ex;" alt="{\displaystyle a^{2^{r-2}}=a^{{\frac {1}{2}}\varphi (2^{r})}\equiv 1{\pmod {2^{r}}}}" loading="lazy"></span></dd></dl>
<p>for all <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle r\geq 3}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>r</mi>
<mo>≥<!-- ≥ --></mo>
<mn>3</mn>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle r\geq 3}</annotation>
</semantics>
</math></span><img src="./c00042b0f5d6d3e14ffd54a53bf56e85de256386.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.505ex; width:5.31ex; height:2.343ex;" alt="{\displaystyle r\geq 3}" loading="lazy"></span> and all <span class="texhtml mvar" style="font-style:italic;"> a</span> coprime to <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle 2^{r}}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<msup>
<mn>2</mn>
<mrow class="MJX-TeXAtom-ORD">
<mi>r</mi>
</mrow>
</msup>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle 2^{r}}</annotation>
</semantics>
</math></span><img src="./c7f5f9125e1c1d0ac48d810ee16bfe95c6dabcad.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:2.136ex; height:2.343ex;" alt="{\displaystyle 2^{r}}" loading="lazy"></span>.<sup id="cite_ref-13" class="reference"><a href="#cite_note-13"><span class="cite-bracket">[</span>13<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading3"><h3 id="Integers_with_multiple_prime_factors">Integers with multiple prime factors</h3></div>
<p>By the <a href="Unique_factorization_theorem" class="mw-redirect" title="Unique factorization theorem">unique factorization theorem</a>, any <span class="texhtml"> <i>n</i> &gt; 1</span> can be written in a unique way as
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle n=p_{1}^{r_{1}}p_{2}^{r_{2}}\cdots p_{k}^{r_{k}}}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>n</mi>
<mo>=</mo>
<msubsup>
<mi>p</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>1</mn>
</mrow>
<mrow class="MJX-TeXAtom-ORD">
<msub>
<mi>r</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>1</mn>
</mrow>
</msub>
</mrow>
</msubsup>
<msubsup>
<mi>p</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>2</mn>
</mrow>
<mrow class="MJX-TeXAtom-ORD">
<msub>
<mi>r</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>2</mn>
</mrow>
</msub>
</mrow>
</msubsup>
<mo>⋯<!-- ⋯ --></mo>
<msubsup>
<mi>p</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>k</mi>
</mrow>
<mrow class="MJX-TeXAtom-ORD">
<msub>
<mi>r</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>k</mi>
</mrow>
</msub>
</mrow>
</msubsup>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle n=p_{1}^{r_{1}}p_{2}^{r_{2}}\cdots p_{k}^{r_{k}}}</annotation>
</semantics>
</math></span><img src="./c2c65ea3b23584241e69dd75a2bd439af0e03ca2.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -1.005ex; width:16.943ex; height:3.176ex;" alt="{\displaystyle n=p_{1}^{r_{1}}p_{2}^{r_{2}}\cdots p_{k}^{r_{k}}}" loading="lazy"></span></dd></dl>
<p>where <span class="texhtml"> <i>p</i><sub>1</sub> &lt; <i>p</i><sub>2</sub> &lt; ... &lt; <i>p<sub>k</sub></i></span> are primes and <span class="texhtml"> <i>r</i><sub>1</sub>, <i>r</i><sub>2</sub>, ..., <i>r<sub>k</sub></i></span> are positive integers. The results for prime powers establish that, for <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle 1\leq j\leq k}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mn>1</mn>
<mo>≤<!-- ≤ --></mo>
<mi>j</mi>
<mo>≤<!-- ≤ --></mo>
<mi>k</mi>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle 1\leq j\leq k}</annotation>
</semantics>
</math></span><img src="./fe6213470ed1ea7817e7bec06ffa56be9f5e7721.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.671ex; width:9.529ex; height:2.509ex;" alt="{\displaystyle 1\leq j\leq k}" loading="lazy"></span>,
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle a^{\lambda \left(p_{j}^{r_{j}}\right)}\equiv 1{\pmod {p_{j}^{r_{j}}}}\qquad {\text{for all }}a{\text{ coprime to }}n{\text{ and hence to }}p_{i}^{r_{i}}.}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<msup>
<mi>a</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>λ<!-- λ --></mi>
<mrow>
<mo>(</mo>
<msubsup>
<mi>p</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>j</mi>
</mrow>
<mrow class="MJX-TeXAtom-ORD">
<msub>
<mi>r</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>j</mi>
</mrow>
</msub>
</mrow>
</msubsup>
<mo>)</mo>
</mrow>
</mrow>
</msup>
<mo>≡<!-- ≡ --></mo>
<mn>1</mn>
<mrow class="MJX-TeXAtom-ORD">
<mspace width="1em"></mspace>
<mo stretchy="false">(</mo>
<mi>mod</mi>
<mspace width="0.333em"></mspace>
<msubsup>
<mi>p</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>j</mi>
</mrow>
<mrow class="MJX-TeXAtom-ORD">
<msub>
<mi>r</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>j</mi>
</mrow>
</msub>
</mrow>
</msubsup>
<mo stretchy="false">)</mo>
</mrow>
<mspace width="2em"></mspace>
<mrow class="MJX-TeXAtom-ORD">
<mtext>for all&nbsp;</mtext>
</mrow>
<mi>a</mi>
<mrow class="MJX-TeXAtom-ORD">
<mtext>&nbsp;coprime to&nbsp;</mtext>
</mrow>
<mi>n</mi>
<mrow class="MJX-TeXAtom-ORD">
<mtext>&nbsp;and hence to&nbsp;</mtext>
</mrow>
<msubsup>
<mi>p</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>i</mi>
</mrow>
<mrow class="MJX-TeXAtom-ORD">
<msub>
<mi>r</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>i</mi>
</mrow>
</msub>
</mrow>
</msubsup>
<mo>.</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle a^{\lambda \left(p_{j}^{r_{j}}\right)}\equiv 1{\pmod {p_{j}^{r_{j}}}}\qquad {\text{for all }}a{\text{ coprime to }}n{\text{ and hence to }}p_{i}^{r_{i}}.}</annotation>
</semantics>
</math></span><img src="./0cd88a7a773d8d0c38db41bba9e0c85482840f07.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -1.338ex; width:66.192ex; height:4.843ex;" alt="{\displaystyle a^{\lambda \left(p_{j}^{r_{j}}\right)}\equiv 1{\pmod {p_{j}^{r_{j}}}}\qquad {\text{for all }}a{\text{ coprime to }}n{\text{ and hence to }}p_{i}^{r_{i}}.}" loading="lazy"></span></dd></dl>
<p>From this it follows that
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle a^{\lambda (n)}\equiv 1{\pmod {p_{j}^{r_{j}}}}\qquad {\text{for all }}a{\text{ coprime to }}n,}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<msup>
<mi>a</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>λ<!-- λ --></mi>
<mo stretchy="false">(</mo>
<mi>n</mi>
<mo stretchy="false">)</mo>
</mrow>
</msup>
<mo>≡<!-- ≡ --></mo>
<mn>1</mn>
<mrow class="MJX-TeXAtom-ORD">
<mspace width="1em"></mspace>
<mo stretchy="false">(</mo>
<mi>mod</mi>
<mspace width="0.333em"></mspace>
<msubsup>
<mi>p</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>j</mi>
</mrow>
<mrow class="MJX-TeXAtom-ORD">
<msub>
<mi>r</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>j</mi>
</mrow>
</msub>
</mrow>
</msubsup>
<mo stretchy="false">)</mo>
</mrow>
<mspace width="2em"></mspace>
<mrow class="MJX-TeXAtom-ORD">
<mtext>for all&nbsp;</mtext>
</mrow>
<mi>a</mi>
<mrow class="MJX-TeXAtom-ORD">
<mtext>&nbsp;coprime to&nbsp;</mtext>
</mrow>
<mi>n</mi>
<mo>,</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle a^{\lambda (n)}\equiv 1{\pmod {p_{j}^{r_{j}}}}\qquad {\text{for all }}a{\text{ coprime to }}n,}</annotation>
</semantics>
</math></span><img src="./cc8fc2fdd80fdf9807592b49e021e75247c6ec90.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -1.338ex; width:47.631ex; height:3.843ex;" alt="{\displaystyle a^{\lambda (n)}\equiv 1{\pmod {p_{j}^{r_{j}}}}\qquad {\text{for all }}a{\text{ coprime to }}n,}" loading="lazy"></span></dd></dl>
<p>where, as given by the recurrence,
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \lambda (n)=\operatorname {lcm} {\Bigl (}\lambda \left(p_{1}^{r_{1}}\right),\lambda \left(p_{2}^{r_{2}}\right),\ldots ,\lambda \left(p_{k}^{r_{k}}\right){\Bigr )}.}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>λ<!-- λ --></mi>
<mo stretchy="false">(</mo>
<mi>n</mi>
<mo stretchy="false">)</mo>
<mo>=</mo>
<mi>lcm</mi>
<mo>⁡<!-- ⁡ --></mo>
<mrow class="MJX-TeXAtom-ORD">
<mrow class="MJX-TeXAtom-OPEN">
<mo maxsize="1.623em" minsize="1.623em">(</mo>
</mrow>
</mrow>
<mi>λ<!-- λ --></mi>
<mrow>
<mo>(</mo>
<msubsup>
<mi>p</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>1</mn>
</mrow>
<mrow class="MJX-TeXAtom-ORD">
<msub>
<mi>r</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>1</mn>
</mrow>
</msub>
</mrow>
</msubsup>
<mo>)</mo>
</mrow>
<mo>,</mo>
<mi>λ<!-- λ --></mi>
<mrow>
<mo>(</mo>
<msubsup>
<mi>p</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>2</mn>
</mrow>
<mrow class="MJX-TeXAtom-ORD">
<msub>
<mi>r</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>2</mn>
</mrow>
</msub>
</mrow>
</msubsup>
<mo>)</mo>
</mrow>
<mo>,</mo>
<mo>…<!-- … --></mo>
<mo>,</mo>
<mi>λ<!-- λ --></mi>
<mrow>
<mo>(</mo>
<msubsup>
<mi>p</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>k</mi>
</mrow>
<mrow class="MJX-TeXAtom-ORD">
<msub>
<mi>r</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>k</mi>
</mrow>
</msub>
</mrow>
</msubsup>
<mo>)</mo>
</mrow>
<mrow class="MJX-TeXAtom-ORD">
<mrow class="MJX-TeXAtom-CLOSE">
<mo maxsize="1.623em" minsize="1.623em">)</mo>
</mrow>
</mrow>
<mo>.</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \lambda (n)=\operatorname {lcm} {\Bigl (}\lambda \left(p_{1}^{r_{1}}\right),\lambda \left(p_{2}^{r_{2}}\right),\ldots ,\lambda \left(p_{k}^{r_{k}}\right){\Bigr )}.}</annotation>
</semantics>
</math></span><img src="./07d5aca1ad5585c12ba06ad8bcb71b64f5492e37.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -1.838ex; width:42.383ex; height:4.843ex;" alt="{\displaystyle \lambda (n)=\operatorname {lcm} {\Bigl (}\lambda \left(p_{1}^{r_{1}}\right),\lambda \left(p_{2}^{r_{2}}\right),\ldots ,\lambda \left(p_{k}^{r_{k}}\right){\Bigr )}.}" loading="lazy"></span></dd></dl>
<p>From the <a href="Chinese_remainder_theorem" title="Chinese remainder theorem">Chinese remainder theorem</a> one concludes that
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle a^{\lambda (n)}\equiv 1{\pmod {n}}\qquad {\text{for all }}a{\text{ coprime to }}n.}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<msup>
<mi>a</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>λ<!-- λ --></mi>
<mo stretchy="false">(</mo>
<mi>n</mi>
<mo stretchy="false">)</mo>
</mrow>
</msup>
<mo>≡<!-- ≡ --></mo>
<mn>1</mn>
<mrow class="MJX-TeXAtom-ORD">
<mspace width="1em"></mspace>
<mo stretchy="false">(</mo>
<mi>mod</mi>
<mspace width="0.333em"></mspace>
<mi>n</mi>
<mo stretchy="false">)</mo>
</mrow>
<mspace width="2em"></mspace>
<mrow class="MJX-TeXAtom-ORD">
<mtext>for all&nbsp;</mtext>
</mrow>
<mi>a</mi>
<mrow class="MJX-TeXAtom-ORD">
<mtext>&nbsp;coprime to&nbsp;</mtext>
</mrow>
<mi>n</mi>
<mo>.</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle a^{\lambda (n)}\equiv 1{\pmod {n}}\qquad {\text{for all }}a{\text{ coprime to }}n.}</annotation>
</semantics>
</math></span><img src="./175e258a123ae4c273200601470cfaf46be4f3c4.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:46.169ex; height:3.343ex;" alt="{\displaystyle a^{\lambda (n)}\equiv 1{\pmod {n}}\qquad {\text{for all }}a{\text{ coprime to }}n.}" loading="lazy"></span></dd></dl>
<div class="mw-heading mw-heading2"><h2 id="See_also">See also</h2></div>
<ul><li><a href="Carmichael_number" title="Carmichael number">Carmichael number</a></li></ul>
<div class="mw-heading mw-heading2"><h2 id="Notes">Notes</h2></div>
<div class="mw-references-wrap mw-references-columns"><ol class="references">
<li id="cite_note-1"><span class="mw-cite-backlink"><b><a href="#cite_ref-1">^</a></b></span> <span class="reference-text">
<style data-mw-deduplicate="TemplateStyles:r1238218222">
/* start https://en.wikipedia.org/ */


.mw-parser-output cite.citation{font-style:inherit;word-wrap:break-word}.mw-parser-output .citation q{quotes:"\"""\"""'""'"}.mw-parser-output .citation:target{background-color:rgba(0,127,255,0.133)}.mw-parser-output .id-lock-free.id-lock-free a{background:url("./mw/Lock-green.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-limited.id-lock-limited a,.mw-parser-output .id-lock-registration.id-lock-registration a{background:url("./mw/Lock-gray-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-subscription.id-lock-subscription a{background:url("./mw/Lock-red-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .cs1-ws-icon a{background:url("./mw/Wikisource-logo.svg")right 0.1em center/12px no-repeat}body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-free a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-limited a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-registration a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-subscription a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .cs1-ws-icon a{background-size:contain;padding:0 1em 0 0}.mw-parser-output .cs1-code{color:inherit;background:inherit;border:none;padding:inherit}.mw-parser-output .cs1-hidden-error{display:none;color:var(--color-error,#d33)}.mw-parser-output .cs1-visible-error{color:var(--color-error,#d33)}.mw-parser-output .cs1-maint{display:none;color:#085;margin-left:0.3em}.mw-parser-output .cs1-kern-left{padding-left:0.2em}.mw-parser-output .cs1-kern-right{padding-right:0.2em}.mw-parser-output .citation .mw-selflink{font-weight:inherit}@media screen{.mw-parser-output .cs1-format{font-size:95%}html.skin-theme-clientpref-night .mw-parser-output .cs1-maint{color:#18911f}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .cs1-maint{color:#18911f}}


/* end https://en.wikipedia.org/ */
</style><cite id="CITEREFCarmichael1910" class="citation journal cs1">Carmichael, Robert Daniel (1910). <a rel="nofollow" class="external text" href="https://doi.org/10.1090%2FS0002-9904-1910-01892-9">"Note on a new number theory function"</a>. <i>Bulletin of the American Mathematical Society</i>. <b>16</b> (5): <span class="nowrap">232–</span>238. <a href="Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<span class="id-lock-free" title="Freely accessible"><a rel="nofollow" class="external text" href="https://doi.org/10.1090%2FS0002-9904-1910-01892-9">10.1090/S0002-9904-1910-01892-9</a></span>.</cite></span>
</li>
<li id="cite_note-2"><span class="mw-cite-backlink"><b><a href="#cite_ref-2">^</a></b></span> <span class="reference-text">Carmichael (1914) p.40</span>
</li>
<li id="cite_note-3"><span class="mw-cite-backlink"><b><a href="#cite_ref-3">^</a></b></span> <span class="reference-text">Carmichael (1914) p.54</span>
</li>
<li id="cite_note-4"><span class="mw-cite-backlink"><b><a href="#cite_ref-4">^</a></b></span> <span class="reference-text">Carmichael (1914) p.55</span>
</li>
<li id="cite_note-5"><span class="mw-cite-backlink"><b><a href="#cite_ref-5">^</a></b></span> <span class="reference-text">Carmichael (1914) p.56</span>
</li>
<li id="cite_note-6"><span class="mw-cite-backlink"><b><a href="#cite_ref-6">^</a></b></span> <span class="reference-text">Theorem 3 in Erdős (1991)</span>
</li>
<li id="cite_note-HBII194-7"><span class="mw-cite-backlink">^ <a href="#cite_ref-HBII194_7-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-HBII194_7-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text">Sándor &amp; Crstici (2004) p.194</span>
</li>
<li id="cite_note-8"><span class="mw-cite-backlink"><b><a href="#cite_ref-8">^</a></b></span> <span class="reference-text">Theorem 2 in Erdős (1991) 3. Normal order. (p.365)</span>
</li>
<li id="cite_note-9"><span class="mw-cite-backlink"><b><a href="#cite_ref-9">^</a></b></span> <span class="reference-text">Theorem 5 in Friedlander (2001)</span>
</li>
<li id="cite_note-Theorem_1_in_Erdős_(1991)-10"><span class="mw-cite-backlink">^ <a href="#cite_ref-Theorem_1_in_Erdős_(1991)_10-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-Theorem_1_in_Erdős_(1991)_10-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text">Theorem 1 in Erdős (1991)</span>
</li>
<li id="cite_note-HBII193-11"><span class="mw-cite-backlink">^ <a href="#cite_ref-HBII193_11-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-HBII193_11-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text">Sándor &amp; Crstici (2004) p.193</span>
</li>
<li id="cite_note-12"><span class="mw-cite-backlink"><b><a href="#cite_ref-12">^</a></b></span> <span class="reference-text"><cite id="CITEREFFordLucaPomerance2014" class="citation journal cs1">Ford, Kevin; Luca, Florian; Pomerance, Carl (27 August 2014). "The image of Carmichael's <i>λ</i>-function". <i>Algebra &amp; Number Theory</i>. <b>8</b> (8): <span class="nowrap">2009–</span>2026. <a href="ArXiv_(identifier)" class="mw-redirect" title="ArXiv (identifier)">arXiv</a>:<span class="id-lock-free" title="Freely accessible"><a rel="nofollow" class="external text" href="https://arxiv.org/abs/1408.6506">1408.6506</a></span>. <a href="Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<a rel="nofollow" class="external text" href="https://doi.org/10.2140%2Fant.2014.8.2009">10.2140/ant.2014.8.2009</a>. <a href="S2CID_(identifier)" class="mw-redirect" title="S2CID (identifier)">S2CID</a>&nbsp;<a rel="nofollow" class="external text" href="https://api.semanticscholar.org/CorpusID:50397623">50397623</a>.</cite></span>
</li>
<li id="cite_note-13"><span class="mw-cite-backlink"><b><a href="#cite_ref-13">^</a></b></span> <span class="reference-text">Carmichael (1914) pp.38–39</span>
</li>
</ol></div>
<div class="mw-heading mw-heading2"><h2 id="References">References</h2></div>
<ul><li><cite id="CITEREFErdősPomeranceSchmutz1991" class="citation journal cs1"><a href="Paul_Erd%C5%91s" title="Paul Erdős">Erdős, Paul</a>; <a href="Carl_Pomerance" title="Carl Pomerance">Pomerance, Carl</a>; Schmutz, Eric (1991). <a rel="nofollow" class="external text" href="https://doi.org/10.4064%2Faa-58-4-363-385">"Carmichael's lambda function"</a>. <i>Acta Arithmetica</i>. <b>58</b> (4): <span class="nowrap">363–</span>385. <a href="Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<span class="id-lock-free" title="Freely accessible"><a rel="nofollow" class="external text" href="https://doi.org/10.4064%2Faa-58-4-363-385">10.4064/aa-58-4-363-385</a></span>. <a href="ISSN_(identifier)" class="mw-redirect" title="ISSN (identifier)">ISSN</a>&nbsp;<a rel="nofollow" class="external text" href="https://search.worldcat.org/issn/0065-1036">0065-1036</a>. <a href="MR_(identifier)" class="mw-redirect" title="MR (identifier)">MR</a>&nbsp;<a rel="nofollow" class="external text" href="https://mathscinet.ams.org/mathscinet-getitem?mr=1121092">1121092</a>. <a href="Zbl_(identifier)" class="mw-redirect" title="Zbl (identifier)">Zbl</a>&nbsp;<a rel="nofollow" class="external text" href="https://zbmath.org/?format=complete&amp;q=an:0734.11047">0734.11047</a>.</cite></li>
<li><cite id="CITEREFFriedlanderPomeranceShparlinski2001" class="citation journal cs1"><a href="John_Friedlander" title="John Friedlander">Friedlander, John B.</a>; Pomerance, Carl; Shparlinski, Igor E. (2001). <a rel="nofollow" class="external text" href="https://doi.org/10.1090%2Fs0025-5718-00-01282-5">"Period of the power generator and small values of the Carmichael function"</a>. <i>Mathematics of Computation</i>. <b>70</b> (236): <span class="nowrap">1591–</span>1605, <span class="nowrap">1803–</span>1806. <a href="Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<span class="id-lock-free" title="Freely accessible"><a rel="nofollow" class="external text" href="https://doi.org/10.1090%2Fs0025-5718-00-01282-5">10.1090/s0025-5718-00-01282-5</a></span>. <a href="ISSN_(identifier)" class="mw-redirect" title="ISSN (identifier)">ISSN</a>&nbsp;<a rel="nofollow" class="external text" href="https://search.worldcat.org/issn/0025-5718">0025-5718</a>. <a href="MR_(identifier)" class="mw-redirect" title="MR (identifier)">MR</a>&nbsp;<a rel="nofollow" class="external text" href="https://mathscinet.ams.org/mathscinet-getitem?mr=1836921">1836921</a>. <a href="Zbl_(identifier)" class="mw-redirect" title="Zbl (identifier)">Zbl</a>&nbsp;<a rel="nofollow" class="external text" href="https://zbmath.org/?format=complete&amp;q=an:1029.11043">1029.11043</a>.</cite></li>
<li><cite id="CITEREFSándorCrstici2004" class="citation book cs1">Sándor, Jozsef; Crstici, Borislav (2004). <i>Handbook of number theory II</i>. Dordrecht: Kluwer Academic. pp.&nbsp;<span class="nowrap">32–</span>36, <span class="nowrap">193–</span>195. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>978-1-4020-2546-4</bdi>. <a href="Zbl_(identifier)" class="mw-redirect" title="Zbl (identifier)">Zbl</a>&nbsp;<a rel="nofollow" class="external text" href="https://zbmath.org/?format=complete&amp;q=an:1079.11001">1079.11001</a>.</cite></li>

<li><style data-mw-deduplicate="TemplateStyles:r1041539562">
/* start https://en.wikipedia.org/ */


.mw-parser-output .citation{word-wrap:break-word}.mw-parser-output .citation:target{background-color:rgba(0,127,255,0.133)}


/* end https://en.wikipedia.org/ */
</style><span class="citation gutenberg">Carmichael, Robert D. [1914]. <i><a rel="nofollow" class="external text" href="https://gutenberg.org/ebooks/13693">The Theory of Numbers</a></i> at <a href="Project_Gutenberg" title="Project Gutenberg">Project Gutenberg</a></span></li></ul>
<div class="navbox-styles"><style data-mw-deduplicate="TemplateStyles:r1129693374">
/* start https://en.wikipedia.org/ */


.mw-parser-output .hlist dl,.mw-parser-output .hlist ol,.mw-parser-output .hlist ul{margin:0;padding:0}.mw-parser-output .hlist dd,.mw-parser-output .hlist dt,.mw-parser-output .hlist li{margin:0;display:inline}.mw-parser-output .hlist.inline,.mw-parser-output .hlist.inline dl,.mw-parser-output .hlist.inline ol,.mw-parser-output .hlist.inline ul,.mw-parser-output .hlist dl dl,.mw-parser-output .hlist dl ol,.mw-parser-output .hlist dl ul,.mw-parser-output .hlist ol dl,.mw-parser-output .hlist ol ol,.mw-parser-output .hlist ol ul,.mw-parser-output .hlist ul dl,.mw-parser-output .hlist ul ol,.mw-parser-output .hlist ul ul{display:inline}.mw-parser-output .hlist .mw-empty-li{display:none}.mw-parser-output .hlist dt::after{content:": "}.mw-parser-output .hlist dd::after,.mw-parser-output .hlist li::after{content:" · ";font-weight:bold}.mw-parser-output .hlist dd:last-child::after,.mw-parser-output .hlist dt:last-child::after,.mw-parser-output .hlist li:last-child::after{content:none}.mw-parser-output .hlist dd dd:first-child::before,.mw-parser-output .hlist dd dt:first-child::before,.mw-parser-output .hlist dd li:first-child::before,.mw-parser-output .hlist dt dd:first-child::before,.mw-parser-output .hlist dt dt:first-child::before,.mw-parser-output .hlist dt li:first-child::before,.mw-parser-output .hlist li dd:first-child::before,.mw-parser-output .hlist li dt:first-child::before,.mw-parser-output .hlist li li:first-child::before{content:" (";font-weight:normal}.mw-parser-output .hlist dd dd:last-child::after,.mw-parser-output .hlist dd dt:last-child::after,.mw-parser-output .hlist dd li:last-child::after,.mw-parser-output .hlist dt dd:last-child::after,.mw-parser-output .hlist dt dt:last-child::after,.mw-parser-output .hlist dt li:last-child::after,.mw-parser-output .hlist li dd:last-child::after,.mw-parser-output .hlist li dt:last-child::after,.mw-parser-output .hlist li li:last-child::after{content:")";font-weight:normal}.mw-parser-output .hlist ol{counter-reset:listitem}.mw-parser-output .hlist ol>li{counter-increment:listitem}.mw-parser-output .hlist ol>li::before{content:" "counter(listitem)"\a0 "}.mw-parser-output .hlist dd ol>li:first-child::before,.mw-parser-output .hlist dt ol>li:first-child::before,.mw-parser-output .hlist li ol>li:first-child::before{content:" ("counter(listitem)"\a0 "}


/* end https://en.wikipedia.org/ */
</style><style data-mw-deduplicate="TemplateStyles:r1236075235">
/* start https://en.wikipedia.org/ */


.mw-parser-output .navbox{box-sizing:border-box;border:1px solid #a2a9b1;width:100%;clear:both;font-size:88%;text-align:center;padding:1px;margin:1em auto 0}.mw-parser-output .navbox .navbox{margin-top:0}.mw-parser-output .navbox+.navbox,.mw-parser-output .navbox+.navbox-styles+.navbox{margin-top:-1px}.mw-parser-output .navbox-inner,.mw-parser-output .navbox-subgroup{width:100%}.mw-parser-output .navbox-group,.mw-parser-output .navbox-title,.mw-parser-output .navbox-abovebelow{padding:0.25em 1em;line-height:1.5em;text-align:center}.mw-parser-output .navbox-group{white-space:nowrap;text-align:right}.mw-parser-output .navbox,.mw-parser-output .navbox-subgroup{background-color:#fdfdfd}.mw-parser-output .navbox-list{line-height:1.5em;border-color:#fdfdfd}.mw-parser-output .navbox-list-with-group{text-align:left;border-left-width:2px;border-left-style:solid}.mw-parser-output tr+tr>.navbox-abovebelow,.mw-parser-output tr+tr>.navbox-group,.mw-parser-output tr+tr>.navbox-image,.mw-parser-output tr+tr>.navbox-list{border-top:2px solid #fdfdfd}.mw-parser-output .navbox-title{background-color:#ccf}.mw-parser-output .navbox-abovebelow,.mw-parser-output .navbox-group,.mw-parser-output .navbox-subgroup .navbox-title{background-color:#ddf}.mw-parser-output .navbox-subgroup .navbox-group,.mw-parser-output .navbox-subgroup .navbox-abovebelow{background-color:#e6e6ff}.mw-parser-output .navbox-even{background-color:#f7f7f7}.mw-parser-output .navbox-odd{background-color:transparent}.mw-parser-output .navbox .hlist td dl,.mw-parser-output .navbox .hlist td ol,.mw-parser-output .navbox .hlist td ul,.mw-parser-output .navbox td.hlist dl,.mw-parser-output .navbox td.hlist ol,.mw-parser-output .navbox td.hlist ul{padding:0.125em 0}.mw-parser-output .navbox .navbar{display:block;font-size:100%}.mw-parser-output .navbox-title .navbar{float:left;text-align:left;margin-right:0.5em}body.skin--responsive .mw-parser-output .navbox-image img{max-width:none!important}@media print{body.ns-0 .mw-parser-output .navbox{display:none!important}}


/* end https://en.wikipedia.org/ */
</style></div><div role="navigation" class="navbox" aria-labelledby="Totient_function16" style="padding:3px"><table class="nowraplinks mw-collapsible uncollapsed navbox-inner" style="border-spacing:0;background:transparent;color:inherit"><tbody><tr><th scope="col" class="navbox-title" colspan="2"><style data-mw-deduplicate="TemplateStyles:r1239400231">
/* start https://en.wikipedia.org/ */


.mw-parser-output .navbar{display:inline;font-size:88%;font-weight:normal}.mw-parser-output .navbar-collapse{float:left;text-align:left}.mw-parser-output .navbar-boxtext{word-spacing:0}.mw-parser-output .navbar ul{display:inline-block;white-space:nowrap;line-height:inherit}.mw-parser-output .navbar-brackets::before{margin-right:-0.125em;content:"[ "}.mw-parser-output .navbar-brackets::after{margin-left:-0.125em;content:" ]"}.mw-parser-output .navbar li{word-spacing:-0.125em}.mw-parser-output .navbar a>span,.mw-parser-output .navbar a>abbr{text-decoration:inherit}.mw-parser-output .navbar-mini abbr{font-variant:small-caps;border-bottom:none;text-decoration:none;cursor:inherit}.mw-parser-output .navbar-ct-full{font-size:114%;margin:0 7em}.mw-parser-output .navbar-ct-mini{font-size:114%;margin:0 4em}html.skin-theme-clientpref-night .mw-parser-output .navbar li a abbr{color:var(--color-base)!important}@media(prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .navbar li a abbr{color:var(--color-base)!important}}@media print{.mw-parser-output .navbar{display:none!important}}


/* end https://en.wikipedia.org/ */
</style><div id="Totient_function16" style="font-size:114%;margin:0 4em">Totient function</div></th></tr><tr><td colspan="2" class="navbox-list navbox-odd hlist" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li><a href="Euler's_totient_function" title="Euler's totient function">Euler's totient function</a> <span class="texhtml"><i>φ</i>(<i>n</i>)</span></li>
<li><a href="Jordan's_totient_function" title="Jordan's totient function">Jordan's totient function</a> <span class="texhtml"><i>J<sub>k</sub></i>(<i>n</i>)</span></li>
<li> (reduced totient function) <span class="texhtml"><i>λ</i>(<i>n</i>)</span></li>
<li><a href="Nontotient" title="Nontotient">Nontotient</a></li>
<li><a href="Noncototient" title="Noncototient">Noncototient</a></li>
<li><a href="Highly_totient_number" title="Highly totient number">Highly totient number</a></li>
<li><a href="Highly_cototient_number" title="Highly cototient number">Highly cototient number</a></li>
<li><a href="Sparsely_totient_number" title="Sparsely totient number">Sparsely totient number</a></li></ul>
</div></td></tr></tbody></table></div></div><!--htdig_noindex--><div><div class="zim-footer">
This article is issued from <a class="external text" title="Last edited on 2025-08-08" href="https://en.wikipedia.org/wiki/?title=Carmichael_function&amp;oldid=1304767304">Wikipedia</a>. The text is available under <a class="external text" href="https://creativecommons.org/licenses/by-sa/4.0/deed.en">Creative Commons Attribution-Share Alike 4.0</a> unless otherwise noted. Additional terms may apply for the media files.
</div>
</div><!--/htdig_noindex--></div>
</div>
</main>
</div>
</div>
</div>

</body></html>